protected override void NewChild(SyntaxNode node) { switch (node.SyntaxType) { case SyntaxType.Expression: this.Expression = node as ExpressionSyntax; break; case SyntaxType.TypeQualifier: this.TypeQualifier = node as TypeQualifierSyntax; break; case SyntaxType.Type: this.TypeSyntax = node as TypeSyntax; break; case SyntaxType.IdentifierToken: this.Identifier = node as IdentifierSyntax; break; case SyntaxType.EqualToken: this.Equal = node as SyntaxToken; break; case SyntaxType.Initializer: this.Initializer = node as InitializerSyntax; break; } }
protected override void NewChild(SyntaxNode node) { switch (node.SyntaxType) { case SyntaxType.TypeQualifier: this.TypeQualifier = node as TypeQualifierSyntax; break; case SyntaxType.ReturnType: this.ReturnType = node as ReturnTypeSyntax; break; case SyntaxType.IdentifierToken: this.Identifier = node as IdentifierSyntax; break; case SyntaxType.LeftParenToken: this.LeftParentheses = node as SyntaxToken; break; case SyntaxType.Parameter: this.Parameters.AddNode(node as ParameterSyntax); break; case SyntaxType.CommaToken: this.Parameters.AddToken(node as SyntaxToken); break; case SyntaxType.RightParenToken: this.RightParentheses = node as SyntaxToken; break; } }
protected override void NewChild(SyntaxNode node) { switch (node.SyntaxType) { case SyntaxType.TypeQualifier: this.TypeQualifier = node as TypeQualifierSyntax; break; case SyntaxType.IdentifierToken: this.Identifier = node as IdentifierSyntax; break; case SyntaxType.LeftBraceToken: this.LeftBrace = node as SyntaxToken; break; case SyntaxType.StructDeclaration: this.structDeclarations.Add(node as StructDeclarationSyntax); break; case SyntaxType.RightBraceToken: this.RightBrace = node as SyntaxToken; break; case SyntaxType.StructDeclarator: this.StructDeclarator = node as StructDeclaratorSyntax; break; case SyntaxType.SemicolonToken: this.Semicolon = node as SyntaxToken; break; } }
protected override void NewChild(SyntaxNode node) { switch (node.SyntaxType) { case SyntaxType.TypeQualifier: this.TypeQualifier = node as TypeQualifierSyntax; break; case SyntaxType.Type: this.TypeSyntax = node as TypeSyntax; break; case SyntaxType.IdentifierToken: this.Identifier = node as IdentifierSyntax; break; case SyntaxType.ArraySpecifier: this.arraySpecifiers.Add(node as ArraySpecifierSyntax); break; } }