1 type derived from SyntaxTreeSemanticModel
Microsoft.CodeAnalysis.VisualBasic (1)
Compilation\SpeculativeSyntaxTreeSemanticModel.vb (1)
18
Inherits
SyntaxTreeSemanticModel
2 instantiations of SyntaxTreeSemanticModel
Microsoft.CodeAnalysis.VisualBasic (2)
Compilation\SpeculativeSyntaxTreeSemanticModel.vb (1)
36
MyBase.
New
(parentSemanticModel.Compilation, DirectCast(parentSemanticModel.Compilation.SourceModule, SourceModuleSymbol), root.SyntaxTree, ignoreAccessibility:=parentSemanticModel.IgnoresAccessibility)
Compilation\VisualBasicCompilation.vb (1)
2044
Return New
SyntaxTreeSemanticModel
(Me, DirectCast(Me.SourceModule, SourceModuleSymbol), syntaxTree, ignoreAccessibility)
56 references to SyntaxTreeSemanticModel
Microsoft.CodeAnalysis.VisualBasic (54)
Binding\AttributeSemanticModel.vb (6)
25
Friend Shared Function Create(containingSemanticModel As
SyntaxTreeSemanticModel
, binder As AttributeBinder) As AttributeSemanticModel
36
Private Shared Function GetAttributeTarget(model As
SyntaxTreeSemanticModel
, binder As AttributeBinder) As Symbol
48
Friend Shared Function CreateSpeculative(parentSemanticModel As
SyntaxTreeSemanticModel
, root As AttributeSyntax, binder As Binder, position As Integer) As SpeculativeSemanticModelWithMemberModel
75
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, initializer As EqualsValueSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
80
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, statement As ExecutableStatementSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
85
Friend Overrides Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Binding\InitializerSemanticModel.vb (5)
25
Friend Shared Function Create(containingSemanticModel As
SyntaxTreeSemanticModel
, binder As DeclarationInitializerBinder) As InitializerSemanticModel
33
Friend Shared Function CreateSpeculative(parentSemanticModel As
SyntaxTreeSemanticModel
, root As EqualsValueSyntax, binder As Binder, position As Integer) As SpeculativeSemanticModelWithMemberModel
205
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, initializer As EqualsValueSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
219
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, statement As ExecutableStatementSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
224
Friend Overrides Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, body As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Binding\MemberSemanticModel.vb (2)
1100
Friend NotOverridable Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, type As TypeSyntax, bindingOption As SpeculativeBindingOption, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
1111
Friend NotOverridable Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, rangeArgument As RangeArgumentSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Binding\MethodBodySemanticModel.vb (5)
23
Friend Shared Function Create(containingSemanticModel As
SyntaxTreeSemanticModel
, binder As SubOrFunctionBodyBinder) As MethodBodySemanticModel
31
Friend Shared Function CreateSpeculative(parentSemanticModel As
SyntaxTreeSemanticModel
, root As VisualBasicSyntaxNode, binder As Binder, position As Integer) As SpeculativeSemanticModelWithMemberModel
35
Friend Overrides Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
66
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, statement As ExecutableStatementSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
84
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, initializer As EqualsValueSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Binding\SpeculativeMemberSemanticModel.vb (3)
26
Friend Overrides Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
30
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, statement As ExecutableStatementSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
34
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, initializer As EqualsValueSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Compilation\MethodCompiler.vb (2)
1267
Dim semanticModelWithCachedBoundNodes As
SyntaxTreeSemanticModel
= Nothing
1271
semanticModelWithCachedBoundNodes = CType(cachingSemanticModelProvider.GetSemanticModel(syntax.SyntaxTree, compilation),
SyntaxTreeSemanticModel
)
Compilation\SemanticModel.vb (11)
2155
Dim result = TryGetSpeculativeSemanticModelForMethodBodyCore(DirectCast(Me,
SyntaxTreeSemanticModel
), position, method, speculativePublicModel)
2161
Friend MustOverride Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
2185
Dim result = TryGetSpeculativeSemanticModelCore(DirectCast(Me,
SyntaxTreeSemanticModel
), position, rangeArgument, speculativePublicModel)
2191
Friend MustOverride Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, rangeArgument As RangeArgumentSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
2214
Dim result = TryGetSpeculativeSemanticModelCore(DirectCast(Me,
SyntaxTreeSemanticModel
), position, statement, speculativePublicModel)
2220
Friend MustOverride Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, statement As ExecutableStatementSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
2244
Dim result = TryGetSpeculativeSemanticModelCore(DirectCast(Me,
SyntaxTreeSemanticModel
), position, initializer, speculativePublicModel)
2250
Friend MustOverride Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, initializer As EqualsValueSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
2278
speculativeModel = AttributeSemanticModel.CreateSpeculative(DirectCast(Me,
SyntaxTreeSemanticModel
), attribute, binder, position)
2305
Dim result = TryGetSpeculativeSemanticModelCore(DirectCast(Me,
SyntaxTreeSemanticModel
), position, type, bindingOption, speculativePublicModel)
2311
Friend MustOverride Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, type As TypeSyntax, bindingOption As SpeculativeBindingOption, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Compilation\SpeculativeSemanticModelWithMemberModel.vb (12)
21
Private ReadOnly _parentSemanticModel As
SyntaxTreeSemanticModel
25
Private Sub New(parentSemanticModel As
SyntaxTreeSemanticModel
,
33
Friend Sub New(parentSemanticModel As
SyntaxTreeSemanticModel
, position As Integer, root As AttributeSyntax, binder As Binder)
43
Friend Sub New(parentSemanticModel As
SyntaxTreeSemanticModel
, position As Integer, root As EqualsValueSyntax, binder As Binder)
53
Friend Sub New(parentSemanticModel As
SyntaxTreeSemanticModel
, position As Integer, root As VisualBasicSyntaxNode, binder As Binder)
63
Friend Sub New(parentSemanticModel As
SyntaxTreeSemanticModel
, position As Integer, root As TypeSyntax, binder As Binder)
73
Friend Sub New(parentSemanticModel As
SyntaxTreeSemanticModel
, position As Integer, root As RangeArgumentSyntax, binder As Binder)
277
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, type As TypeSyntax, bindingOption As SpeculativeBindingOption, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
281
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, rangeArgument As RangeArgumentSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
293
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, initializer As EqualsValueSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
297
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, statement As ExecutableStatementSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
301
Friend Overrides Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Compilation\SpeculativeSyntaxTreeSemanticModel.vb (3)
20
Private ReadOnly _parentSemanticModel As
SyntaxTreeSemanticModel
26
Public Shared Function Create(parentSemanticModel As
SyntaxTreeSemanticModel
, root As ExpressionSyntax, binder As Binder, position As Integer, bindingOption As SpeculativeBindingOption) As SpeculativeSyntaxTreeSemanticModel
35
Private Sub New(parentSemanticModel As
SyntaxTreeSemanticModel
, root As ExpressionSyntax, binder As Binder, position As Integer, bindingOption As SpeculativeBindingOption)
Compilation\SyntaxTreeSemanticModel.vb (5)
1425
Friend Overrides Function TryGetSpeculativeSemanticModelForMethodBodyCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, method As MethodBlockBaseSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
1435
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, type As TypeSyntax, bindingOption As SpeculativeBindingOption, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
1451
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, rangeArgument As RangeArgumentSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
1461
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, statement As ExecutableStatementSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
1471
Friend Overrides Function TryGetSpeculativeSemanticModelCore(parentModel As
SyntaxTreeSemanticModel
, position As Integer, initializer As EqualsValueSyntax, <Out> ByRef speculativeModel As PublicSemanticModel) As Boolean
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Binding\MethodBodyBindingTests.vb (2)
82
Dim model = DirectCast(compilation.GetSemanticModel(meth1Context.SyntaxTree),
SyntaxTreeSemanticModel
)
108
model = DirectCast(compilation.GetSemanticModel(meth2Context.SyntaxTree),
SyntaxTreeSemanticModel
)