295 references to Node
Microsoft.CodeAnalysis (3)
Syntax\SyntaxList`1.cs (2)
62
return builder.ToList().
Node
;
460
return new SyntaxList<SyntaxNode>(nodes.
Node
);
Syntax\SyntaxListBuilder.cs (1)
110
this.AddRange(new SyntaxList<SyntaxNode>(list.
Node
), offset, count);
Microsoft.CodeAnalysis.CSharp (10)
Symbols\Source\SourceComplexParameterSymbol.cs (1)
318
var attributes = parameterSyntax.AttributeLists.
Node
;
Symbols\Source\SourceNamedTypeSymbol.cs (3)
1191
var syntaxTree = list.
Node
.SyntaxTree;
1192
QuickAttributeChecker checker = this.DeclaringCompilation.GetBinderFactory(list.
Node
.SyntaxTree).GetBinder(list.
Node
).QuickAttributeChecker;
Symbols\Symbol_Attributes.cs (2)
650
var binder = rootBinder ?? compilation.GetBinderFactory(attributeDeclarationSyntaxList.
Node
!.SyntaxTree).GetBinder(attributeDeclarationSyntaxList.
Node
);
Syntax\SyntaxFactory.cs (4)
2003
return SyntaxEquivalence.AreEquivalent(oldList.
Node
, newList.
Node
, null, topLevel);
2018
return SyntaxEquivalence.AreEquivalent(oldList.
Node
, newList.
Node
, ignoreChildNode, topLevel: false);
Microsoft.CodeAnalysis.VisualBasic (280)
Generated\Syntax.xml.Main.Generated.vb (272)
1518
If node._options IsNot newOptions.
Node
Then anyChanges = True
1520
If node._imports IsNot newImports.
Node
Then anyChanges = True
1522
If node._attributes IsNot newAttributes.
Node
Then anyChanges = True
1524
If node._members IsNot newMembers.
Node
Then anyChanges = True
1529
Return New CompilationUnitSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOptions.
Node
, newImports.
Node
, newAttributes.
Node
, newMembers.
Node
, newEndOfFileToken)
1620
If node._members IsNot newMembers.
Node
Then anyChanges = True
1625
Return New NamespaceBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNamespaceStatement, newMembers.
Node
, newEndNamespaceStatement)
1652
If node._inherits IsNot newInherits.
Node
Then anyChanges = True
1654
If node._implements IsNot newImplements.
Node
Then anyChanges = True
1656
If node._members IsNot newMembers.
Node
Then anyChanges = True
1661
Return New ModuleBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newModuleStatement, newInherits.
Node
, newImplements.
Node
, newMembers.
Node
, newEndModuleStatement)
1673
If node._inherits IsNot newInherits.
Node
Then anyChanges = True
1675
If node._implements IsNot newImplements.
Node
Then anyChanges = True
1677
If node._members IsNot newMembers.
Node
Then anyChanges = True
1682
Return New StructureBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newStructureStatement, newInherits.
Node
, newImplements.
Node
, newMembers.
Node
, newEndStructureStatement)
1694
If node._inherits IsNot newInherits.
Node
Then anyChanges = True
1696
If node._implements IsNot newImplements.
Node
Then anyChanges = True
1698
If node._members IsNot newMembers.
Node
Then anyChanges = True
1703
Return New InterfaceBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newInterfaceStatement, newInherits.
Node
, newImplements.
Node
, newMembers.
Node
, newEndInterfaceStatement)
1715
If node._inherits IsNot newInherits.
Node
Then anyChanges = True
1717
If node._implements IsNot newImplements.
Node
Then anyChanges = True
1719
If node._members IsNot newMembers.
Node
Then anyChanges = True
1724
Return New ClassBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newClassStatement, newInherits.
Node
, newImplements.
Node
, newMembers.
Node
, newEndClassStatement)
1736
If node._members IsNot newMembers.
Node
Then anyChanges = True
1741
Return New EnumBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newEnumStatement, newMembers.
Node
, newEndEnumStatement)
1781
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
1792
Return New ModuleStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newModuleKeyword, newIdentifier, newTypeParameterList)
1802
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
1813
Return New StructureStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newStructureKeyword, newIdentifier, newTypeParameterList)
1823
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
1834
Return New InterfaceStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newInterfaceKeyword, newIdentifier, newTypeParameterList)
1844
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
1855
Return New ClassStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newClassKeyword, newIdentifier, newTypeParameterList)
1865
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
1876
Return New EnumStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newEnumKeyword, newIdentifier, newUnderlyingType)
1982
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
1989
Return New EnumMemberDeclarationSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newIdentifier, newInitializer)
2001
If node._statements IsNot newStatements.
Node
Then anyChanges = True
2006
Return New MethodBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSubOrFunctionStatement, newStatements.
Node
, newEndSubOrFunctionStatement)
2018
If node._statements IsNot newStatements.
Node
Then anyChanges = True
2023
Return New ConstructorBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSubNewStatement, newStatements.
Node
, newEndSubStatement)
2035
If node._statements IsNot newStatements.
Node
Then anyChanges = True
2040
Return New OperatorBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newOperatorStatement, newStatements.
Node
, newEndOperatorStatement)
2052
If node._statements IsNot newStatements.
Node
Then anyChanges = True
2057
Return New AccessorBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAccessorStatement, newStatements.
Node
, newEndAccessorStatement)
2069
If node._accessors IsNot newAccessors.
Node
Then anyChanges = True
2074
Return New PropertyBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newPropertyStatement, newAccessors.
Node
, newEndPropertyStatement)
2086
If node._accessors IsNot newAccessors.
Node
Then anyChanges = True
2091
Return New EventBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newEventStatement, newAccessors.
Node
, newEndEventStatement)
2118
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2137
Return New MethodStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newSubOrFunctionKeyword, newIdentifier, newTypeParameterList, newParameterList, newAsClause, newHandlesClause, newImplementsClause)
2147
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2158
Return New SubNewStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newSubKeyword, newNewKeyword, newParameterList)
2168
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2193
Return New DeclareStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newDeclareKeyword, newCharsetKeyword, newSubOrFunctionKeyword, newIdentifier, newLibKeyword, newLibraryName, newAliasKeyword, newAliasName, newParameterList, newAsClause)
2203
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2220
Return New DelegateStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newDelegateKeyword, newSubOrFunctionKeyword, newIdentifier, newTypeParameterList, newParameterList, newAsClause)
2230
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2247
Return New EventStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newCustomKeyword, newEventKeyword, newIdentifier, newParameterList, newAsClause, newImplementsClause)
2257
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2270
Return New OperatorStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newOperatorKeyword, newOperatorToken, newParameterList, newAsClause)
2280
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2297
Return New PropertyStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newPropertyKeyword, newIdentifier, newParameterList, newAsClause, newInitializer, newImplementsClause)
2307
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2316
Return New AccessorStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newAccessorKeyword, newParameterList)
2416
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2423
Return New IncompleteMemberSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newMissingIdentifier)
2433
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2440
Return New FieldDeclarationSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newDeclarators.Node)
2469
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2474
Return New SimpleAsClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAsKeyword, newAttributeLists.
Node
, newType)
2584
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2595
Return New ParameterSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newIdentifier, newAsClause, newDefault)
2611
If node._arrayRankSpecifiers IsNot newArrayRankSpecifiers.
Node
Then anyChanges = True
2614
Return New ModifiedIdentifierSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIdentifier, newNullable, newArrayBounds, newArrayRankSpecifiers.
Node
)
2690
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
2693
Return New AttributesStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
)
2733
If node._statements IsNot newStatements.
Node
Then anyChanges = True
2738
Return New WhileBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newWhileStatement, newStatements.
Node
, newEndWhileStatement)
2750
If node._statements IsNot newStatements.
Node
Then anyChanges = True
2755
Return New UsingBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newUsingStatement, newStatements.
Node
, newEndUsingStatement)
2767
If node._statements IsNot newStatements.
Node
Then anyChanges = True
2772
Return New SyncLockBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSyncLockStatement, newStatements.
Node
, newEndSyncLockStatement)
2784
If node._statements IsNot newStatements.
Node
Then anyChanges = True
2789
Return New WithBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newWithStatement, newStatements.
Node
, newEndWithStatement)
2921
If node._statements IsNot newStatements.
Node
Then anyChanges = True
2926
Return New SingleLineIfStatementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIfKeyword, newCondition, newThenKeyword, newStatements.
Node
, newElseClause)
2938
If node._statements IsNot newStatements.
Node
Then anyChanges = True
2941
Return New SingleLineElseClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newElseKeyword, newStatements.
Node
)
2953
If node._statements IsNot newStatements.
Node
Then anyChanges = True
2955
If node._elseIfBlocks IsNot newElseIfBlocks.
Node
Then anyChanges = True
2962
Return New MultiLineIfBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newIfStatement, newStatements.
Node
, newElseIfBlocks.
Node
, newElseBlock, newEndIfStatement)
2991
If node._statements IsNot newStatements.
Node
Then anyChanges = True
2994
Return New ElseIfBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newElseIfStatement, newStatements.
Node
)
3023
If node._statements IsNot newStatements.
Node
Then anyChanges = True
3026
Return New ElseBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newElseStatement, newStatements.
Node
)
3051
If node._statements IsNot newStatements.
Node
Then anyChanges = True
3053
If node._catchBlocks IsNot newCatchBlocks.
Node
Then anyChanges = True
3060
Return New TryBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newTryStatement, newStatements.
Node
, newCatchBlocks.
Node
, newFinallyBlock, newEndTryStatement)
3085
If node._statements IsNot newStatements.
Node
Then anyChanges = True
3088
Return New CatchBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newCatchStatement, newStatements.
Node
)
3134
If node._statements IsNot newStatements.
Node
Then anyChanges = True
3137
Return New FinallyBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newFinallyStatement, newStatements.
Node
)
3232
If node._caseBlocks IsNot newCaseBlocks.
Node
Then anyChanges = True
3237
Return New SelectBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSelectStatement, newCaseBlocks.
Node
, newEndSelectStatement)
3266
If node._statements IsNot newStatements.
Node
Then anyChanges = True
3269
Return New CaseBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newCaseStatement, newStatements.
Node
)
3371
If node._statements IsNot newStatements.
Node
Then anyChanges = True
3376
Return New DoLoopBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newDoStatement, newStatements.
Node
, newLoopStatement)
3448
If node._statements IsNot newStatements.
Node
Then anyChanges = True
3453
Return New ForBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newForStatement, newStatements.
Node
, newNextStatement)
3465
If node._statements IsNot newStatements.
Node
Then anyChanges = True
3470
Return New ForEachBlockSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newForEachStatement, newStatements.
Node
, newNextStatement)
3976
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
3985
Return New ObjectCreationExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNewKeyword, newAttributeLists.
Node
, newType, newArgumentList, newInitializer)
3997
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
4002
Return New AnonymousObjectCreationExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNewKeyword, newAttributeLists.
Node
, newInitializer)
4014
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
4020
If node._rankSpecifiers IsNot newRankSpecifiers.
Node
Then anyChanges = True
4025
Return New ArrayCreationExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newNewKeyword, newAttributeLists.
Node
, newType, newArrayBounds, newRankSpecifiers.
Node
, newInitializer)
4239
If node._statements IsNot newStatements.
Node
Then anyChanges = True
4244
Return New MultiLineLambdaExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newSubOrFunctionHeader, newStatements.
Node
, newEndSubOrFunctionStatement)
4254
If node._attributeLists IsNot newAttributeLists.
Node
Then anyChanges = True
4265
Return New LambdaHeaderSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAttributeLists.
Node
, newModifiers.Node, newSubOrFunctionKeyword, newParameterList, newAsClause)
4352
If node._clauses IsNot newClauses.
Node
Then anyChanges = True
4355
Return New QueryExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newClauses.
Node
)
4497
If node._additionalQueryOperators IsNot newAdditionalQueryOperators.
Node
Then anyChanges = True
4504
Return New AggregateClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newAggregateKeyword, newVariables.Node, newAdditionalQueryOperators.
Node
, newIntoKeyword, newAggregationVariables.Node)
4618
If node._additionalJoins IsNot newAdditionalJoins.
Node
Then anyChanges = True
4625
Return New SimpleJoinClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newJoinKeyword, newJoinedVariables.Node, newAdditionalJoins.
Node
, newOnKeyword, newJoinConditions.Node)
4641
If node._additionalJoins IsNot newAdditionalJoins.
Node
Then anyChanges = True
4652
Return New GroupJoinClauseSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newGroupKeyword, newJoinKeyword, newJoinedVariables.Node, newAdditionalJoins.
Node
, newOnKeyword, newJoinConditions.Node, newIntoKeyword, newAggregationVariables.Node)
4711
If node._precedingMisc IsNot newPrecedingMisc.
Node
Then anyChanges = True
4715
If node._followingMisc IsNot newFollowingMisc.
Node
Then anyChanges = True
4718
Return New XmlDocumentSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newDeclaration, newPrecedingMisc.
Node
, newRoot, newFollowingMisc.
Node
)
4770
If node._content IsNot newContent.
Node
Then anyChanges = True
4775
Return New XmlElementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newStartTag, newContent.
Node
, newEndTag)
4802
If node._attributes IsNot newAttributes.
Node
Then anyChanges = True
4807
Return New XmlElementStartTagSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLessThanToken, newName, newAttributes.
Node
, newGreaterThanToken)
4838
If node._attributes IsNot newAttributes.
Node
Then anyChanges = True
4843
Return New XmlEmptyElementSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newLessThanToken, newName, newAttributes.
Node
, newSlashGreaterThanToken)
5019
If node._rankSpecifiers IsNot newRankSpecifiers.
Node
Then anyChanges = True
5022
Return New ArrayTypeSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newElementType, newRankSpecifiers.
Node
)
5261
If node._content IsNot newContent.
Node
Then anyChanges = True
5264
Return New DocumentationCommentTriviaSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newContent.
Node
)
5354
If node._contents IsNot newContents.
Node
Then anyChanges = True
5359
Return New InterpolatedStringExpressionSyntax(node.Kind, node.Green.GetDiagnostics, node.Green.GetAnnotations, newDollarSignDoubleQuoteToken, newContents.
Node
, newDoubleQuoteToken)
6680
Return New CompilationUnitSyntax(SyntaxKind.CompilationUnit, Nothing, Nothing, options.
Node
, [imports].
Node
, attributes.
Node
, members.
Node
, DirectCast(endOfFileToken.Node, InternalSyntax.PunctuationSyntax))
6970
Return New NamespaceBlockSyntax(SyntaxKind.NamespaceBlock, Nothing, Nothing, namespaceStatement, members.
Node
, endNamespaceStatement)
7080
Return New ModuleBlockSyntax(SyntaxKind.ModuleBlock, Nothing, Nothing, moduleStatement, [inherits].
Node
, [implements].
Node
, members.
Node
, endModuleStatement)
7153
Return New StructureBlockSyntax(SyntaxKind.StructureBlock, Nothing, Nothing, structureStatement, [inherits].
Node
, [implements].
Node
, members.
Node
, endStructureStatement)
7226
Return New InterfaceBlockSyntax(SyntaxKind.InterfaceBlock, Nothing, Nothing, interfaceStatement, [inherits].
Node
, [implements].
Node
, members.
Node
, endInterfaceStatement)
7299
Return New ClassBlockSyntax(SyntaxKind.ClassBlock, Nothing, Nothing, classStatement, [inherits].
Node
, [implements].
Node
, members.
Node
, endClassStatement)
7366
Return New EnumBlockSyntax(SyntaxKind.EnumBlock, Nothing, Nothing, enumStatement, members.
Node
, endEnumStatement)
7512
Return New ModuleStatementSyntax(SyntaxKind.ModuleStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(moduleKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList)
7597
Return New StructureStatementSyntax(SyntaxKind.StructureStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(structureKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList)
7682
Return New InterfaceStatementSyntax(SyntaxKind.InterfaceStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(interfaceKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList)
7767
Return New ClassStatementSyntax(SyntaxKind.ClassStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(classKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList)
7852
Return New EnumStatementSyntax(SyntaxKind.EnumStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(enumKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), underlyingType)
8251
Return New EnumMemberDeclarationSyntax(SyntaxKind.EnumMemberDeclaration, Nothing, Nothing, attributeLists.
Node
, DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), initializer)
8303
Return New MethodBlockSyntax(SyntaxKind.SubBlock, Nothing, Nothing, subOrFunctionStatement, statements.
Node
, endSubOrFunctionStatement)
8364
Return New MethodBlockSyntax(SyntaxKind.FunctionBlock, Nothing, Nothing, subOrFunctionStatement, statements.
Node
, endSubOrFunctionStatement)
8428
Return New MethodBlockSyntax(kind, Nothing, Nothing, subOrFunctionStatement, statements.
Node
, endSubOrFunctionStatement)
8501
Return New ConstructorBlockSyntax(SyntaxKind.ConstructorBlock, Nothing, Nothing, subNewStatement, statements.
Node
, endSubStatement)
8562
Return New OperatorBlockSyntax(SyntaxKind.OperatorBlock, Nothing, Nothing, operatorStatement, statements.
Node
, endOperatorStatement)
8634
Return New AccessorBlockSyntax(SyntaxKind.GetAccessorBlock, Nothing, Nothing, accessorStatement, statements.
Node
, endAccessorStatement)
8702
Return New AccessorBlockSyntax(SyntaxKind.SetAccessorBlock, Nothing, Nothing, accessorStatement, statements.
Node
, endAccessorStatement)
8770
Return New AccessorBlockSyntax(SyntaxKind.AddHandlerAccessorBlock, Nothing, Nothing, accessorStatement, statements.
Node
, endAccessorStatement)
8838
Return New AccessorBlockSyntax(SyntaxKind.RemoveHandlerAccessorBlock, Nothing, Nothing, accessorStatement, statements.
Node
, endAccessorStatement)
8906
Return New AccessorBlockSyntax(SyntaxKind.RaiseEventAccessorBlock, Nothing, Nothing, accessorStatement, statements.
Node
, endAccessorStatement)
8978
Return New AccessorBlockSyntax(kind, Nothing, Nothing, accessorStatement, statements.
Node
, endAccessorStatement)
9068
Return New PropertyBlockSyntax(SyntaxKind.PropertyBlock, Nothing, Nothing, propertyStatement, accessors.
Node
, endPropertyStatement)
9119
Return New EventBlockSyntax(SyntaxKind.EventBlock, Nothing, Nothing, eventStatement, accessors.
Node
, endEventStatement)
9240
Return New MethodStatementSyntax(SyntaxKind.SubStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList, parameterList, asClause, handlesClause, implementsClause)
9367
Return New MethodStatementSyntax(SyntaxKind.FunctionStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList, parameterList, asClause, handlesClause, implementsClause)
9499
Return New MethodStatementSyntax(kind, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList, parameterList, asClause, handlesClause, implementsClause)
9591
Return New SubNewStatementSyntax(SyntaxKind.SubNewStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(subKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(newKeyword.Node, InternalSyntax.KeywordSyntax), parameterList)
9711
Return New DeclareStatementSyntax(SyntaxKind.DeclareSubStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(declareKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(charsetKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), DirectCast(libKeyword.Node, InternalSyntax.KeywordSyntax), libraryName, DirectCast(aliasKeyword.Node, InternalSyntax.KeywordSyntax), aliasName, parameterList, asClause)
9863
Return New DeclareStatementSyntax(SyntaxKind.DeclareFunctionStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(declareKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(charsetKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), DirectCast(libKeyword.Node, InternalSyntax.KeywordSyntax), libraryName, DirectCast(aliasKeyword.Node, InternalSyntax.KeywordSyntax), aliasName, parameterList, asClause)
10020
Return New DeclareStatementSyntax(kind, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(declareKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(charsetKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), DirectCast(libKeyword.Node, InternalSyntax.KeywordSyntax), libraryName, DirectCast(aliasKeyword.Node, InternalSyntax.KeywordSyntax), aliasName, parameterList, asClause)
10173
Return New DelegateStatementSyntax(SyntaxKind.DelegateSubStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(delegateKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList, parameterList, asClause)
10282
Return New DelegateStatementSyntax(SyntaxKind.DelegateFunctionStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(delegateKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList, parameterList, asClause)
10397
Return New DelegateStatementSyntax(kind, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(delegateKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), typeParameterList, parameterList, asClause)
10537
Return New EventStatementSyntax(SyntaxKind.EventStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(customKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(eventKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), parameterList, asClause, implementsClause)
10666
Return New OperatorStatementSyntax(SyntaxKind.OperatorStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(operatorKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(operatorToken.Node, InternalSyntax.SyntaxToken), parameterList, asClause)
10765
Return New PropertyStatementSyntax(SyntaxKind.PropertyStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(propertyKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), parameterList, asClause, initializer, implementsClause)
10871
Return New AccessorStatementSyntax(SyntaxKind.GetAccessorStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(accessorKeyword.Node, InternalSyntax.KeywordSyntax), parameterList)
10941
Return New AccessorStatementSyntax(SyntaxKind.SetAccessorStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(accessorKeyword.Node, InternalSyntax.KeywordSyntax), parameterList)
11011
Return New AccessorStatementSyntax(SyntaxKind.AddHandlerAccessorStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(accessorKeyword.Node, InternalSyntax.KeywordSyntax), parameterList)
11081
Return New AccessorStatementSyntax(SyntaxKind.RemoveHandlerAccessorStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(accessorKeyword.Node, InternalSyntax.KeywordSyntax), parameterList)
11151
Return New AccessorStatementSyntax(SyntaxKind.RaiseEventAccessorStatement, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(accessorKeyword.Node, InternalSyntax.KeywordSyntax), parameterList)
11228
Return New AccessorStatementSyntax(kind, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(accessorKeyword.Node, InternalSyntax.KeywordSyntax), parameterList)
11535
Return New IncompleteMemberSyntax(SyntaxKind.IncompleteMember, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(missingIdentifier.Node, InternalSyntax.IdentifierTokenSyntax))
11568
Return New FieldDeclarationSyntax(SyntaxKind.FieldDeclaration, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, declarators.Node)
11687
Return New SimpleAsClauseSyntax(SyntaxKind.SimpleAsClause, Nothing, Nothing, DirectCast(asKeyword.Node, InternalSyntax.KeywordSyntax), attributeLists.
Node
, type)
12245
Return New ParameterSyntax(SyntaxKind.Parameter, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, identifier, asClause, [default])
12283
Return New ModifiedIdentifierSyntax(SyntaxKind.ModifiedIdentifier, Nothing, Nothing, DirectCast(identifier.Node, InternalSyntax.IdentifierTokenSyntax), DirectCast(nullable.Node, InternalSyntax.PunctuationSyntax), arrayBounds, arrayRankSpecifiers.
Node
)
12500
Return New AttributesStatementSyntax(SyntaxKind.AttributesStatement, Nothing, Nothing, attributeLists.
Node
)
12810
Return New WhileBlockSyntax(SyntaxKind.WhileBlock, Nothing, Nothing, whileStatement, statements.
Node
, endWhileStatement)
12872
Return New UsingBlockSyntax(SyntaxKind.UsingBlock, Nothing, Nothing, usingStatement, statements.
Node
, endUsingStatement)
12935
Return New SyncLockBlockSyntax(SyntaxKind.SyncLockBlock, Nothing, Nothing, syncLockStatement, statements.
Node
, endSyncLockStatement)
12998
Return New WithBlockSyntax(SyntaxKind.WithBlock, Nothing, Nothing, withStatement, statements.
Node
, endWithStatement)
14077
Return New SingleLineIfStatementSyntax(SyntaxKind.SingleLineIfStatement, Nothing, Nothing, DirectCast(ifKeyword.Node, InternalSyntax.KeywordSyntax), condition, DirectCast(thenKeyword.Node, InternalSyntax.KeywordSyntax), statements.
Node
, elseClause)
14126
Return New SingleLineElseClauseSyntax(SyntaxKind.SingleLineElseClause, Nothing, Nothing, DirectCast(elseKeyword.Node, InternalSyntax.KeywordSyntax), statements.
Node
)
14189
Return New MultiLineIfBlockSyntax(SyntaxKind.MultiLineIfBlock, Nothing, Nothing, ifStatement, statements.
Node
, elseIfBlocks.
Node
, elseBlock, endIfStatement)
14393
Return New ElseIfBlockSyntax(SyntaxKind.ElseIfBlock, Nothing, Nothing, elseIfStatement, statements.
Node
)
14571
Return New ElseBlockSyntax(SyntaxKind.ElseBlock, Nothing, Nothing, elseStatement, statements.
Node
)
14654
Return New TryBlockSyntax(SyntaxKind.TryBlock, Nothing, Nothing, tryStatement, statements.
Node
, catchBlocks.
Node
, finallyBlock, endTryStatement)
14727
Return New CatchBlockSyntax(SyntaxKind.CatchBlock, Nothing, Nothing, catchStatement, statements.
Node
)
14954
Return New FinallyBlockSyntax(SyntaxKind.FinallyBlock, Nothing, Nothing, finallyStatement, statements.
Node
)
15676
Return New SelectBlockSyntax(SyntaxKind.SelectBlock, Nothing, Nothing, selectStatement, caseBlocks.
Node
, endSelectStatement)
15873
Return New CaseBlockSyntax(SyntaxKind.CaseBlock, Nothing, Nothing, caseStatement, statements.
Node
)
15907
Return New CaseBlockSyntax(SyntaxKind.CaseElseBlock, Nothing, Nothing, caseStatement, statements.
Node
)
15948
Return New CaseBlockSyntax(kind, Nothing, Nothing, caseStatement, statements.
Node
)
17779
Return New DoLoopBlockSyntax(SyntaxKind.SimpleDoLoopBlock, Nothing, Nothing, doStatement, statements.
Node
, loopStatement)
17828
Return New DoLoopBlockSyntax(SyntaxKind.DoWhileLoopBlock, Nothing, Nothing, doStatement, statements.
Node
, loopStatement)
17877
Return New DoLoopBlockSyntax(SyntaxKind.DoUntilLoopBlock, Nothing, Nothing, doStatement, statements.
Node
, loopStatement)
17926
Return New DoLoopBlockSyntax(SyntaxKind.DoLoopWhileBlock, Nothing, Nothing, doStatement, statements.
Node
, loopStatement)
17975
Return New DoLoopBlockSyntax(SyntaxKind.DoLoopUntilBlock, Nothing, Nothing, doStatement, statements.
Node
, loopStatement)
18028
Return New DoLoopBlockSyntax(kind, Nothing, Nothing, doStatement, statements.
Node
, loopStatement)
19066
Return New ForBlockSyntax(SyntaxKind.ForBlock, Nothing, Nothing, forStatement, statements.
Node
, nextStatement)
19108
Return New ForEachBlockSyntax(SyntaxKind.ForEachBlock, Nothing, Nothing, forEachStatement, statements.
Node
, nextStatement)
26671
Return New ObjectCreationExpressionSyntax(SyntaxKind.ObjectCreationExpression, Nothing, Nothing, DirectCast(newKeyword.Node, InternalSyntax.KeywordSyntax), attributeLists.
Node
, type, argumentList, initializer)
26737
Return New AnonymousObjectCreationExpressionSyntax(SyntaxKind.AnonymousObjectCreationExpression, Nothing, Nothing, DirectCast(newKeyword.Node, InternalSyntax.KeywordSyntax), attributeLists.
Node
, initializer)
26820
Return New ArrayCreationExpressionSyntax(SyntaxKind.ArrayCreationExpression, Nothing, Nothing, DirectCast(newKeyword.Node, InternalSyntax.KeywordSyntax), attributeLists.
Node
, type, arrayBounds, rankSpecifiers.
Node
, initializer)
36580
Return New MultiLineLambdaExpressionSyntax(SyntaxKind.MultiLineFunctionLambdaExpression, Nothing, Nothing, subOrFunctionHeader, statements.
Node
, endSubOrFunctionStatement)
36635
Return New MultiLineLambdaExpressionSyntax(SyntaxKind.MultiLineSubLambdaExpression, Nothing, Nothing, subOrFunctionHeader, statements.
Node
, endSubOrFunctionStatement)
36698
Return New MultiLineLambdaExpressionSyntax(kind, Nothing, Nothing, subOrFunctionHeader, statements.
Node
, endSubOrFunctionStatement)
36754
Return New LambdaHeaderSyntax(SyntaxKind.SubLambdaHeader, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), parameterList, asClause)
36822
Return New LambdaHeaderSyntax(SyntaxKind.FunctionLambdaHeader, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), parameterList, asClause)
36895
Return New LambdaHeaderSyntax(kind, Nothing, Nothing, attributeLists.
Node
, modifiers.Node, DirectCast(subOrFunctionKeyword.Node, InternalSyntax.KeywordSyntax), parameterList, asClause)
37447
Return New QueryExpressionSyntax(SyntaxKind.QueryExpression, Nothing, Nothing, clauses.
Node
)
38091
Return New AggregateClauseSyntax(SyntaxKind.AggregateClause, Nothing, Nothing, DirectCast(aggregateKeyword.Node, InternalSyntax.KeywordSyntax), variables.Node, additionalQueryOperators.
Node
, DirectCast(intoKeyword.Node, InternalSyntax.KeywordSyntax), aggregationVariables.Node)
39563
Return New SimpleJoinClauseSyntax(SyntaxKind.SimpleJoinClause, Nothing, Nothing, DirectCast(joinKeyword.Node, InternalSyntax.KeywordSyntax), joinedVariables.Node, additionalJoins.
Node
, DirectCast(onKeyword.Node, InternalSyntax.KeywordSyntax), joinConditions.Node)
39649
Return New GroupJoinClauseSyntax(SyntaxKind.GroupJoinClause, Nothing, Nothing, DirectCast(groupKeyword.Node, InternalSyntax.KeywordSyntax), DirectCast(joinKeyword.Node, InternalSyntax.KeywordSyntax), joinedVariables.Node, additionalJoins.
Node
, DirectCast(onKeyword.Node, InternalSyntax.KeywordSyntax), joinConditions.Node, DirectCast(intoKeyword.Node, InternalSyntax.KeywordSyntax), aggregationVariables.Node)
40248
Return New XmlDocumentSyntax(SyntaxKind.XmlDocument, Nothing, Nothing, declaration, precedingMisc.
Node
, root, followingMisc.
Node
)
40363
Return New XmlElementSyntax(SyntaxKind.XmlElement, Nothing, Nothing, startTag, content.
Node
, endTag)
40418
Return New XmlElementStartTagSyntax(SyntaxKind.XmlElementStartTag, Nothing, Nothing, DirectCast(lessThanToken.Node, InternalSyntax.PunctuationSyntax), name, attributes.
Node
, DirectCast(greaterThanToken.Node, InternalSyntax.PunctuationSyntax))
40495
Return New XmlEmptyElementSyntax(SyntaxKind.XmlEmptyElement, Nothing, Nothing, DirectCast(lessThanToken.Node, InternalSyntax.PunctuationSyntax), name, attributes.
Node
, DirectCast(slashGreaterThanToken.Node, InternalSyntax.PunctuationSyntax))
40948
Return New ArrayTypeSyntax(SyntaxKind.ArrayType, Nothing, Nothing, elementType, rankSpecifiers.
Node
)
42008
Return New DocumentationCommentTriviaSyntax(SyntaxKind.DocumentationCommentTrivia, Nothing, Nothing, content.
Node
)
42372
Return New InterpolatedStringExpressionSyntax(SyntaxKind.InterpolatedStringExpression, Nothing, Nothing, DirectCast(dollarSignDoubleQuoteToken.Node, InternalSyntax.PunctuationSyntax), contents.
Node
, DirectCast(doubleQuoteToken.Node, InternalSyntax.PunctuationSyntax))
Symbols\Source\SourceNamedTypeSymbol.vb (1)
2331
Dim sourceFile = ContainingSourceModule.TryGetSourceFile(list.
Node
.SyntaxTree)
Symbols\Source\UnboundLambdaParameterSymbol.vb (2)
79
If syntax.AttributeLists.
Node
IsNot Nothing Then
80
Binder.ReportDiagnostic(diagBag, syntax.AttributeLists.
Node
, ERRID.ERR_LambdasCannotHaveAttributes)
Symbols\Symbol_Attributes.vb (3)
331
Debug.Assert(attributeDeclarationSyntaxList.
Node
IsNot Nothing)
352
Dim syntaxTree = syntaxList.
Node
.SyntaxTree
353
Dim parent = syntaxList.
Node
.Parent
Syntax\SyntaxFactory.vb (2)
1001
Return SyntaxEquivalence.AreEquivalent(oldList.
Node
, newList.
Node
, ignoreChildNode, topLevel:=False)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
TestSyntaxNodes.vb (2)
1869
Assert.Same(membs1.
Node
, membs2.
Node
)