public override void VisitInitNodeDeclaration(InitNodeDeclarationSyntax initNodeDeclarationSyntax) { var identifier = initNodeDeclarationSyntax.InitKeyword; var name = "Init"; // TODO: InitNodeAlias einführen => Implizite Großschreibung von init, falls kein Alias angegeben wurde if (!initNodeDeclarationSyntax.Identifier.IsMissing) { identifier = initNodeDeclarationSyntax.Identifier; name = identifier.ToString(); } var location = identifier.GetLocation(); if (location == null) { return; } var decl = new InitNodeSymbol(name, location, initNodeDeclarationSyntax, _taskDefinition); AddNodeDeclaration(decl); }
public override void PostWalkInitNodeDeclaration(InitNodeDeclarationSyntax initNodeDeclarationSyntax) { MethodsCalled["PostWalkInitNodeDeclaration"]=true; }
// InitNodeDeclarationSyntax public override bool WalkInitNodeDeclaration(InitNodeDeclarationSyntax initNodeDeclarationSyntax) { MethodsCalled["WalkInitNodeDeclaration"]=true; return true; }