97 references to SyntaxTree
Microsoft.CodeAnalysis.VisualBasic (60)
Binding\Binder_Attributes.vb (2)
492DirectCast(identifierName.SyntaxTree.Options, VisualBasicParseOptions).LanguageVersion, 805DirectCast(cast.SyntaxTree, VisualBasicSyntaxTree).Options.LanguageVersion,
Binding\Binder_Expressions.vb (1)
2100DirectCast(node.SyntaxTree.Options, VisualBasicParseOptions).LanguageVersion,
Binding\Binder_Query.vb (4)
1961ReportDiagnostic(diagnostics, Location.Create(groupBy.SyntaxTree, GetGroupByOperatorNameSpan(groupBy)), ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupByMethod) 2000ReportDiagnostic(diagnostics, Location.Create(groupBy.SyntaxTree, GetGroupByOperatorNameSpan(groupBy)), ERRID.ERR_QueryOperatorNotFound, StringConstants.GroupByMethod) 2040Location.Create(groupJoin.SyntaxTree, GetQueryOperatorNameSpan(groupJoin.GroupKeyword, groupJoin.JoinKeyword)), 2076Location.Create(groupJoin.SyntaxTree, GetQueryOperatorNameSpan(groupJoin.GroupKeyword, groupJoin.JoinKeyword)),
Compilation\DocumentationComments\DocumentationCommentCompiler.Common.vb (10)
177If node.SyntaxTree.ReportDocumentationCommentDiagnostics() Then 277Dim reportErrors As Boolean = nodes(0).SyntaxTree.ReportDocumentationCommentDiagnostics() 366If element.SyntaxTree.ReportDocumentationCommentDiagnostics() Then 422If node.SyntaxTree.ReportDocumentationCommentDiagnostics() Then 434If needDiagnostic AndAlso node.SyntaxTree.ReportDocumentationCommentDiagnostics() Then 510If node.SyntaxTree.ReportDocumentationCommentDiagnostics() Then 588If trivia.SyntaxTree.ReportDocumentationCommentDiagnostics() Then 654If element.SyntaxTree.ReportDocumentationCommentDiagnostics() Then 670If missingNameValueError <> ERRID.ERR_None AndAlso element.SyntaxTree.ReportDocumentationCommentDiagnostics() Then 703If theOnlyDocCommentTrivia.SyntaxTree.ReportDocumentationCommentDiagnostics() Then
Compilation\DocumentationComments\DocumentationCommentCompiler.Event.vb (2)
58If docCommentTrivia.SyntaxTree.ReportDocumentationCommentDiagnostics OrElse _writer.IsSpecified Then 89ReportWarningsForTypeParamRefTags(wellKnownElementNodes, symbolName, [event], docCommentTrivia.SyntaxTree)
Compilation\DocumentationComments\DocumentationCommentCompiler.Field.vb (2)
55If docCommentTrivia.SyntaxTree.ReportDocumentationCommentDiagnostics OrElse _writer.IsSpecified Then 80ReportWarningsForTypeParamRefTags(wellKnownElementNodes, symbolName, field, docCommentTrivia.SyntaxTree)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
64sourceIncludeElementNodes(0).SyntaxTree)
Compilation\DocumentationComments\DocumentationCommentCompiler.Method.vb (2)
81If docCommentTrivia.SyntaxTree.ReportDocumentationCommentDiagnostics OrElse _writer.IsSpecified Then 113ReportWarningsForTypeParamRefTags(wellKnownElementNodes, symbolName, method, docCommentTrivia.SyntaxTree)
Compilation\DocumentationComments\DocumentationCommentCompiler.NamedType.vb (4)
58Dim documentationMode As DocumentationMode = trivia.SyntaxTree.Options.DocumentationMode 97If theOnlyDocumentationCommentTrivia.SyntaxTree.ReportDocumentationCommentDiagnostics OrElse _writer.IsSpecified Then 130ReportWarningsForTypeParamRefTags(wellKnownElementNodes, symbolName, namedType, theOnlyDocumentationCommentTrivia.SyntaxTree) 139ReportWarningsForTypeParamRefTags(wellKnownElementNodes, symbolName, namedType, theOnlyDocumentationCommentTrivia.SyntaxTree)
Compilation\DocumentationComments\DocumentationCommentCompiler.Property.vb (2)
59If docCommentTrivia.SyntaxTree.ReportDocumentationCommentDiagnostics OrElse _writer.IsSpecified Then 80ReportWarningsForTypeParamRefTags(wellKnownElementNodes, symbolName, [property], docCommentTrivia.SyntaxTree)
Compilation\DocumentationComments\DocumentationCommentWalker.vb (1)
117Dim walker = New DocumentationCommentWalker(symbol, trivia.SyntaxTree, wellKnownElementNodes, writer, diagnostics)
Compilation\SemanticModel.vb (2)
596If Me.Compilation.ContainsSyntaxTree(node.SyntaxTree) Then 2926Dim symbolInfo As VisualBasicPreprocessingSymbolInfo = node.SyntaxTree.GetPreprocessingSymbolInfo(node)
Compilation\SpeculativeSyntaxTreeSemanticModel.vb (2)
36MyBase.New(parentSemanticModel.Compilation, DirectCast(parentSemanticModel.Compilation.SourceModule, SourceModuleSymbol), root.SyntaxTree, ignoreAccessibility:=parentSemanticModel.IgnoresAccessibility) 71Return _root.SyntaxTree
Compilation\VisualBasicCompilation.vb (1)
1832Me.Tree = syntax.SyntaxTree
GlobalImport.vb (1)
25_clause = clause.SyntaxTree.GetReference(clause)
Symbols\LexicalSortKey.vb (1)
139Me.New(node.SyntaxTree, node.SpanStart, compilation)
Symbols\MethodSymbolExtensions.vb (1)
48Dim syntaxTree = parameter.SyntaxTree
Symbols\Source\ImplementsHelper.vb (1)
498DirectCast(implementedMemberSyntax.SyntaxTree, VisualBasicSyntaxTree).Options.LanguageVersion,
Symbols\Source\SourceMemberContainerTypeSymbol.vb (1)
2855baseBinder = If(baseBinder, BinderBuilder.CreateBinderForType(m_containingModule, methodStatement.SyntaxTree, Me))
Symbols\Source\SourceMethodSymbol.vb (1)
1206If block IsNot Nothing AndAlso localTree Is block.SyntaxTree Then
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
36If attributeSyntax.SyntaxTree.IsMyTemplate Then
Symbols\Source\SourceNamespaceSymbol.vb (1)
633Return nsBlock IsNot Nothing AndAlso nsBlock.SyntaxTree Is tree AndAlso nsBlock.Span.Contains(location)
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (1)
37Me.AttributeSyntax = attributeSyntax.SyntaxTree.GetReference(attributeSyntax)
Symbols\Symbol_Attributes.vb (1)
607compilation.ContainsSyntaxTree(nodeOpt.SyntaxTree) Then
Syntax\VisualBasicSyntaxNode.vb (14)
401Return Me.SyntaxTree 413Return SyntaxReplacer.Replace(Me, nodes, computeReplacementNode, tokens, computeReplacementToken, trivia, computeReplacementTrivia).AsRootOfNewTreeWithOptionsFrom(Me.SyntaxTree) 417Return SyntaxNodeRemover.RemoveNodes(Me, nodes, options).AsRootOfNewTreeWithOptionsFrom(Me.SyntaxTree) 421Return SyntaxReplacer.ReplaceNodeInList(Me, originalNode, replacementNodes).AsRootOfNewTreeWithOptionsFrom(Me.SyntaxTree) 425Return SyntaxReplacer.InsertNodeInList(Me, nodeInList, nodesToInsert, insertBefore).AsRootOfNewTreeWithOptionsFrom(Me.SyntaxTree) 429Return SyntaxReplacer.ReplaceTokenInList(Me, originalToken, newTokens).AsRootOfNewTreeWithOptionsFrom(Me.SyntaxTree) 433Return SyntaxReplacer.InsertTokenInList(Me, originalToken, newTokens, insertBefore).AsRootOfNewTreeWithOptionsFrom(Me.SyntaxTree) 437Return SyntaxReplacer.ReplaceTriviaInList(Me, originalTrivia, newTrivia).AsRootOfNewTreeWithOptionsFrom(Me.SyntaxTree) 441Return SyntaxReplacer.InsertTriviaInList(Me, originalTrivia, newTrivia, insertBefore).AsRootOfNewTreeWithOptionsFrom(Me.SyntaxTree) 445Return SyntaxNormalizer.Normalize(Me, indentation, eol, elasticTrivia, useDefaultCasing:=False).AsRootOfNewTreeWithOptionsFrom(Me.SyntaxTree) 454If Me.SyntaxTree IsNot Nothing Then 455Dim tree = Me.SyntaxTree 470Return SyntaxTree.GetReference(Me) 478Return SyntaxTree.GetDiagnostics(Me)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (2)
SymbolId\SymbolKeyTestBase.vb (2)
239Dim model = _comp.GetSemanticModel(declarator.SyntaxTree) 259Dim model = _comp.GetSemanticModel(body.SyntaxTree)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
PDB\PDBTests.vb (2)
78").SyntaxTree 84").SyntaxTree
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (17)
Compilation\CompilationAPITests.vb (1)
652Dim withExpressionRootTree = SyntaxFactory.ParseExpression("0").SyntaxTree
Semantics\LambdaSemanticInfoTests.vb (3)
750Dim semanticModel = compilation.GetSemanticModel(node.SyntaxTree) 776Dim semanticModel = compilation.GetSemanticModel(node.SyntaxTree) 806Dim semanticModel = compilation.GetSemanticModel(node.SyntaxTree)
Semantics\ScriptSemanticsTests.vb (2)
43Dim syntaxTree = compilationUnit.SyntaxTree 134Dim syntaxTree1 = compilationUnit.SyntaxTree
Semantics\SelectCaseTests.vb (2)
726Dim semanticModel = compilation.GetSemanticModel(node.SyntaxTree) 763Dim semanticModel = compilation.GetSemanticModel(node.SyntaxTree)
Semantics\SyntaxTreeRootTests.vb (5)
62Dim tree = node.SyntaxTree 63Assert.Equal(tree, node.SyntaxTree) 70Dim childTree = node.Operand.SyntaxTree 71Dim parentTree = node.SyntaxTree 79Assert.Equal(tree, tree.GetRoot().DescendantNodes().OfType(Of ClassStatementSyntax)().Single().SyntaxTree)
SourceGeneration\GeneratorDriverTests_Attributes_FullyQualifiedName.vb (4)
201Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, CompilationUnitSyntax).SyntaxTree Is compilation.SyntaxTrees.First)) 230Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, CompilationUnitSyntax).SyntaxTree Is compilation.SyntaxTrees.First)) 256Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, CompilationUnitSyntax).SyntaxTree Is compilation.SyntaxTrees.First), 257Sub(_step) Assert.True(DirectCast(_step.Outputs.Single().Value, CompilationUnitSyntax).SyntaxTree Is compilation.SyntaxTrees.Last))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (14)
Syntax\SyntaxFactoryTests.vb (1)
21Dim text = SyntaxFactory.CompilationUnit().SyntaxTree.GetText()
Syntax\SyntaxRewriterTests.vb (6)
478Dim tree = expression.SyntaxTree 575Dim newTree = newNode.SyntaxTree 582Dim newTree2 = newNode2.SyntaxTree 647Dim newTree = newField.SyntaxTree 653Dim newTree2 = newRoot2.SyntaxTree 675Dim newTree = newField.SyntaxTree
TestSyntaxNodes.vb (7)
2846Dim ChangesForDifferentTrees = FirstImportsClause.SyntaxTree.GetChanges(SecondImportsClause.SyntaxTree) 2857Dim ChangesFromTransform = ThirdImportsClause.SyntaxTree.GetChanges(newImportsClause.SyntaxTree) 2861Dim x As SyntaxTree = ThirdImportsClause.SyntaxTree 2862Dim y As SyntaxTree = newImportsClause.SyntaxTree 2890Assert.Throws(Of ArgumentNullException)(Sub() FirstImportsClause.SyntaxTree.GetChanges(BlankTree))
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
CompilationTestUtils.vb (1)
605Dim semanticModel = DirectCast(compilation.GetSemanticModel(node.SyntaxTree), VBSemanticModel)
Roslyn.Compilers.VisualBasic.IOperation.UnitTests (1)
IOperation\IOperationTests_IUsingStatement.vb (1)
900Assert.Null(comp.GetSemanticModel(node.SyntaxTree).GetOperation(node))