Click here to Skip to main content
14,603,982 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.
 
GeneralRe: Quick C# quiz Pin
Gerry Schmitz2-Dec-19 5:31
mveGerry Schmitz2-Dec-19 5:31 
GeneralRe: Quick C# quiz Pin
honey the codewitch2-Dec-19 5:33
mvahoney the codewitch2-Dec-19 5:33 
GeneralRe: Quick C# quiz Pin
zezba90002-Dec-19 8:35
Memberzezba90002-Dec-19 8:35 
GeneralRe: Quick C# quiz Pin
honey the codewitch2-Dec-19 13:16
mvahoney the codewitch2-Dec-19 13:16 
GeneralRe: Quick C# quiz Pin
zezba90002-Dec-19 14:05
Memberzezba90002-Dec-19 14:05 
GeneralRe: Quick C# quiz Pin
honey the codewitch2-Dec-19 14:12
mvahoney the codewitch2-Dec-19 14:12 
GeneralRe: Quick C# quiz Pin
zezba90002-Dec-19 14:42
Memberzezba90002-Dec-19 14:42 
GeneralRe: Quick C# quiz Pin
honey the codewitch2-Dec-19 14:46
mvahoney the codewitch2-Dec-19 14:46 
That's pretty much what I'm doing.

I'm using the codedom as my ast.

Every root member ref (like "foo" in foo.bar) becomes a "variable reference" with "slang:unresolved" as one of it's "user-data" keys so I can find it later.

Every other member ref, like "bar" in the above is considered a field reference by default, also marked with "slang:unresolved"

later on, I revisit the AST after the parse, find each of these nodes, get the scope from where I'm at and use the type information I now have to replace these "slang:unresolved" items with the appropriate references.

It has served me well so far.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.

GeneralRe: Quick C# quiz Pin
Member 140926054-Dec-19 21:33
MemberMember 140926054-Dec-19 21:33 
GeneralRe: Quick C# quiz Pin
honey the codewitch4-Dec-19 21:37
mvahoney the codewitch4-Dec-19 21:37 
GeneralHomo Hackabilis ? Pin
BillWoodruff29-Nov-19 3:37
mveBillWoodruff29-Nov-19 3:37 
AnswerRe: Homo Hackabilis ? Pin
lopatir29-Nov-19 3:54
Memberlopatir29-Nov-19 3:54 
GeneralRe: Homo Hackabilis ? Pin
Maximilien29-Nov-19 4:00
MemberMaximilien29-Nov-19 4:00 
GeneralRe: Homo Hackabilis ? Pin
CodeWraith29-Nov-19 4:10
MemberCodeWraith29-Nov-19 4:10 
GeneralRe: Homo Hackabilis ? Pin
Maximilien29-Nov-19 4:22
MemberMaximilien29-Nov-19 4:22 
GeneralRe: Homo Hackabilis ? Pin
Eddy Vluggen29-Nov-19 7:19
professionalEddy Vluggen29-Nov-19 7:19 
GeneralRe: Homo Hackabilis ? Pin
BillWoodruff29-Nov-19 19:28
mveBillWoodruff29-Nov-19 19:28 
GeneralAaahhh, Friday afternoon! Pin
glennPattonWork29-Nov-19 3:31
professionalglennPattonWork29-Nov-19 3:31 
GeneralRe: Aaahhh, Friday afternoon! Pin
lopatir29-Nov-19 3:46
Memberlopatir29-Nov-19 3:46 
GeneralRe: Aaahhh, Friday afternoon! Pin
RickZeeland29-Nov-19 3:58
mveRickZeeland29-Nov-19 3:58 
GeneralRe: Aaahhh, Friday afternoon! Pin
RickZeeland29-Nov-19 4:02
mveRickZeeland29-Nov-19 4:02 
GeneralRe: Aaahhh, Friday afternoon! Pin
stoneyowl229-Nov-19 5:04
Memberstoneyowl229-Nov-19 5:04 
PraiseRe: Aaahhh, Friday afternoon! Pin
RickZeeland29-Nov-19 5:57
mveRickZeeland29-Nov-19 5:57 
GeneralRe: Aaahhh, Friday afternoon! Pin
stoneyowl230-Nov-19 3:36
Memberstoneyowl230-Nov-19 3:36 
GeneralRe: Aaahhh, Friday afternoon! Pin
RickZeeland30-Nov-19 4:10
mveRickZeeland30-Nov-19 4:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.