Click here to Skip to main content
15,890,557 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
Stuart Dootson1-Dec-19 23:16
professionalStuart Dootson1-Dec-19 23:16 
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
zezba90002-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
zezba90002-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
zezba90002-Dec-19 14:42 
Not something I've thought about much but Is this for a lesson you can't use Roslyn for?
I'm not sure how Roslyn handles using-static/type-aliases.

C#
using static System.Console;
namespace MyNamespace
{
	class Program
	{
		private delegate void WriteLineFunc();
		private static WriteLineFunc WriteLine;

		static void Main(string[] args)
		{
			WriteLine();// delegate is used
		{
	{
}


So if a local, field/method isn't found mark the AST node as un-resolved or add it to an un-resolved list. Then after all files are parsed go through the un-resolved nodes and try to resolve them through the aliased types. Then you don't have to parse over and over if my thinking is correct.
GeneralRe: Quick C# quiz Pin
honey the codewitch2-Dec-19 14:46
mvahoney the codewitch2-Dec-19 14:46 
GeneralRe: Quick C# quiz Pin
Member 140926054-Dec-19 21:33
Member 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
professionalBillWoodruff29-Nov-19 3:37 
AnswerRe: Homo Hackabilis ? Pin
lopatir29-Nov-19 3:54
lopatir29-Nov-19 3:54 
GeneralRe: Homo Hackabilis ? Pin
Maximilien29-Nov-19 4:00
Maximilien29-Nov-19 4:00 
GeneralRe: Homo Hackabilis ? Pin
CodeWraith29-Nov-19 4:10
CodeWraith29-Nov-19 4:10 
GeneralRe: Homo Hackabilis ? Pin
Maximilien29-Nov-19 4:22
Maximilien29-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
professionalBillWoodruff29-Nov-19 19:28 
GeneralAaahhh, Friday afternoon! Pin
glennPattonWork329-Nov-19 3:31
professionalglennPattonWork329-Nov-19 3:31 
GeneralRe: Aaahhh, Friday afternoon! Pin
lopatir29-Nov-19 3:46
lopatir29-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
stoneyowl229-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
stoneyowl230-Nov-19 3:36 

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.