Exemple #1
0
 public VariableDeclarationStatementSyntax(VariableDeclarationSyntax variableDeclaration, SyntaxToken semicolonToken, ImmutableArray <Diagnostic> diagnostics)
     : base(SyntaxKind.VariableDeclarationStatement, new List <AttributeSyntax>(), diagnostics)
 {
     RegisterChildNode(out Declaration, variableDeclaration);
     RegisterChildNode(out SemicolonToken, semicolonToken);
 }
Exemple #2
0
 public VariableDeclarationStatementSyntax(VariableDeclarationSyntax variableDeclaration, SyntaxToken semicolonToken)
     : base(SyntaxKind.VariableDeclarationStatement, new List <AttributeSyntax>())
 {
     RegisterChildNode(out Declaration, variableDeclaration);
     RegisterChildNode(out SemicolonToken, semicolonToken);
 }