197 references to GetDeclaredSymbol
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (4)
SemanticModelExtensions.vb (2)
128
Dim variableDeclaration = semanticModel.
GetDeclaredSymbol
(variableDeclarator.Names(0), cancellationToken)
143
Dim variableDeclaration = semanticModel.
GetDeclaredSymbol
(variableDeclarator.Names(0), cancellationToken)
VariableDeclaratorSyntaxExtensions.vb (1)
39
Dim localSymbol = TryCast(semanticModel.
GetDeclaredSymbol
(name), ILocalSymbol)
VisualBasicSemanticFacts.vb (1)
227
Select(Function(n) semanticModel.
GetDeclaredSymbol
(n, cancellationToken))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
610
Dim symbol = SemanticModel.
GetDeclaredSymbol
(name, CancellationToken)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (49)
CodeGen\CodeGenRefReturnTests.vb (1)
45
Dim symbol = DirectCast(model.
GetDeclaredSymbol
(syntax), LocalSymbol)
CodeGen\CodeGenTuples.vb (46)
4697
Dim xSymbol = DirectCast(model.
GetDeclaredSymbol
(x), LocalSymbol).Type
5622
model.
GetDeclaredSymbol
(x).ToTestDisplayString())
5658
model.
GetDeclaredSymbol
(x).ToTestDisplayString())
6400
Dim resultSymbol = model.
GetDeclaredSymbol
(result)
11149
Dim xSymbol = DirectCast(model.
GetDeclaredSymbol
(t), LocalSymbol).Type
11798
Assert.Equal("x As System.Nullable(Of (a As System.Int16, b As System.String))", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
11829
Assert.Equal("x As System.Nullable(Of (a As System.Int16, b As System.String))", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
11871
Assert.Equal("x As System.Nullable(Of (a As System.Int16, b As System.String))", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
11947
Assert.Equal("x As System.Nullable(Of (a As System.Int16, b As System.String))", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
11982
Assert.Equal("x As System.Nullable(Of (a As System.Int16, b As System.String))", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12017
Assert.Equal("x As System.Nullable(Of (a As System.Int16, b As System.String))", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12150
Assert.Equal("x As System.Nullable(Of (a As System.Int32, b As System.String))", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12185
Assert.Equal("x As System.Nullable(Of (a As System.Int32, b As System.String))", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12219
Assert.Equal("x As System.Nullable(Of (a As System.Int32, b As System.String))", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12249
Assert.Equal("x As (a As System.Int32, b As System.String)", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12279
Assert.Equal("x As (a As System.Int32, b As System.String)", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12310
Assert.Equal("x As (a As System.Int32, b As System.String)", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12354
Assert.Equal("x As (a As System.Int16, b As System.String)", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12396
Assert.Equal("x As (a As System.Int16, b As System.String)", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12426
Assert.Equal("x As (a As System.Int16, b As System.String)", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12468
Assert.Equal("x As (a As System.Int16, b As System.String)", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12510
Assert.Equal("x As (a As System.Int16, b As System.String)", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
12600
Assert.Equal("x As (a As System.Int16, b As System.String)", model.
GetDeclaredSymbol
(x).ToTestDisplayString())
18275
Assert.Equal("x1 As <anonymous type: Tuple As (a As System.Int32, b As System.Int32)>", model.
GetDeclaredSymbol
(x1).ToTestDisplayString())
18278
Assert.Equal("x2 As <anonymous type: Tuple As (c As System.Int32, System.Int32)>", model.
GetDeclaredSymbol
(x2).ToTestDisplayString())
19527
Dim x1Symbol = model.
GetDeclaredSymbol
(x1)
19582
Assert.Equal("x1 As System.Nullable(Of (a As System.Int32, System.Int32))", model.
GetDeclaredSymbol
(x1).ToTestDisplayString())
19585
Assert.Equal("x2 As (a As System.Int32, System.Int32)", model.
GetDeclaredSymbol
(x2).ToTestDisplayString())
19588
Assert.Equal("x3 As C", model.
GetDeclaredSymbol
(x3).ToTestDisplayString())
19591
Assert.Equal("x4 As System.Nullable(Of (a As System.Int32, c As System.Int32))", model.
GetDeclaredSymbol
(x4).ToTestDisplayString())
19594
Assert.Equal("x5 As System.Nullable(Of (a As System.Int32, System.Int32))", model.
GetDeclaredSymbol
(x5).ToTestDisplayString())
19597
Assert.Equal("x6 As (a As System.Int32, System.Int32)", model.
GetDeclaredSymbol
(x6).ToTestDisplayString())
19600
Assert.Equal("x7 As (a As System.Int32, System.Int32)", model.
GetDeclaredSymbol
(x7).ToTestDisplayString())
19603
Assert.Equal("x8 As C", model.
GetDeclaredSymbol
(x8).ToTestDisplayString())
19606
Assert.Equal("x9 As (a As System.Int32, c As System.Int32)", model.
GetDeclaredSymbol
(x9).ToTestDisplayString())
19609
Assert.Equal("x6double As (d As System.Double, c As System.Int32)", model.
GetDeclaredSymbol
(x6double).ToTestDisplayString())
19649
Dim x1Symbol = model.
GetDeclaredSymbol
(x1)
19653
Dim x2Symbol = model.
GetDeclaredSymbol
(x2)
19684
Dim x1Symbol = model.
GetDeclaredSymbol
(x1)
19736
Dim x1Symbol = model.
GetDeclaredSymbol
(x1)
19777
Dim x1Symbol = model.
GetDeclaredSymbol
(x1)
20944
Dim instance1Symbol = DirectCast(model.
GetDeclaredSymbol
(instance1), LocalSymbol).Type
20951
Dim instance2Symbol = DirectCast(model.
GetDeclaredSymbol
(instance2), LocalSymbol).Type
21002
Dim instance1Symbol = DirectCast(model.
GetDeclaredSymbol
(instance1), LocalSymbol).Type
21011
Dim instance2Symbol = DirectCast(model.
GetDeclaredSymbol
(instance2), LocalSymbol).Type
21553
Dim xSymbol = DirectCast(model.
GetDeclaredSymbol
(x), LocalSymbol).Type
CodeGen\CodeGenWinMdDelegates.vb (1)
90
Dim nodeSymbol = DirectCast(model.
GetDeclaredSymbol
(node), LocalSymbol).Type
Emit\EditAndContinue\EditAndContinueTestBase.vb (1)
84
Dim local = DirectCast(model.
GetDeclaredSymbol
(name), LocalSymbol)
Microsoft.CodeAnalysis.VisualBasic.Features (6)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.ReferenceRewriter.vb (1)
35
_localSymbol = DirectCast(_semanticModel.
GetDeclaredSymbol
(_definition, cancellationToken), ILocalSymbol)
CodeRefactorings\InlineTemporary\VisualBasicInlineTemporaryCodeRefactoringProvider.vb (1)
393
Dim local = DirectCast(semanticModel.
GetDeclaredSymbol
(modifiedIdentifier, cancellationToken), ILocalSymbol)
EditAndContinue\VisualBasicEditAndContinueAnalyzer.vb (2)
1363
symbols = OneOrMany.Create(variableDeclarator.Names.SelectAsArray(Function(n) model.
GetDeclaredSymbol
(n, cancellationToken)))
1378
Select model.
GetDeclaredSymbol
(name, cancellationToken)).ToImmutableArray())
EncapsulateField\VisualBasicEncapsulateFieldService.vb (1)
89
Return names.Select(Function(n) semanticModel.
GetDeclaredSymbol
(n)).
QuickInfo\VisualBasicSemanticQuickInfoProvider.vb (1)
177
Dim symbol = semanticModel.
GetDeclaredSymbol
(n, cancellationToken)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (89)
Compilation\SemanticModelAPITests.vb (15)
119
Dim declSym = semanticModel.
GetDeclaredSymbol
(DirectCast(node2, ModifiedIdentifierSyntax))
159
Dim declSym = semanticModel.
GetDeclaredSymbol
(DirectCast(node2, ModifiedIdentifierSyntax))
615
Dim symbol = speculativeModel.
GetDeclaredSymbol
(identifierSyntax)
774
Dim local = speculativeModel.
GetDeclaredSymbol
(varDecl)
831
Dim local = speculativeModel.
GetDeclaredSymbol
(varDecl)
846
local = speculativeModel.
GetDeclaredSymbol
(varDecl)
887
Dim originalX = semanticModel.
GetDeclaredSymbol
(originalStatement.Declarators(0).Names(0))
904
Dim local = speculativeModel.
GetDeclaredSymbol
(varDecl)
1015
Dim local = speculativeModel.
GetDeclaredSymbol
(speculatedStatement.Declarators.First().Names.First)
1446
Dim local = speculativeModel.
GetDeclaredSymbol
(varDecl)
1595
Dim local = speculativeModel.
GetDeclaredSymbol
(varDecl)
1611
local = speculativeModel.
GetDeclaredSymbol
(varDecl)
1627
local = speculativeModel.
GetDeclaredSymbol
(varDecl)
2948
Return CType(model.
GetDeclaredSymbol
(decl), ILocalSymbol).Type
2989
Return CType(model.
GetDeclaredSymbol
(decl), ILocalSymbol).Type
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (12)
46
Dim symbol1 = model1.
GetDeclaredSymbol
(vardecl)
47
Dim symbol2 = model2.
GetDeclaredSymbol
(vardecl)
144
Dim symbol1 = model1.
GetDeclaredSymbol
(vardecl)
145
Dim symbol2 = model2.
GetDeclaredSymbol
(vardecl)
175
Dim symbol1 = model1.
GetDeclaredSymbol
(vardecl1)
178
Dim symbol2 = model2.
GetDeclaredSymbol
(vardecl2)
209
Dim symbol1 = model1.
GetDeclaredSymbol
(vardecl1)
212
Dim symbol2 = model2.
GetDeclaredSymbol
(vardecl2)
1906
Return semanticModel.
GetDeclaredSymbol
(syntax)
2677
Dim symbol = model.
GetDeclaredSymbol
(identifier)
2859
Dim sym = semanticModel.
GetDeclaredSymbol
(node)
2866
sym = semanticModel.
GetDeclaredSymbol
(node)
DeclaringSyntaxNodeTests.vb (3)
235
Dim localA1 = DirectCast(model.
GetDeclaredSymbol
(declaratorA1.Names(0)), LocalSymbol)
270
Dim localA1 = DirectCast(model.
GetDeclaredSymbol
(declaratorA1.Names(0)), LocalSymbol)
311
Dim localA1 = DirectCast(model.
GetDeclaredSymbol
(declaratorA1.Names(0)), LocalSymbol)
Semantics\Conversions.vb (4)
4060
Dim targetType As TypeSymbol = CType(model.
GetDeclaredSymbol
(variableDeclarator.Names.Single), LocalSymbol).Type
4062
Dim local As LocalSymbol = CType(model.
GetDeclaredSymbol
(variableDeclarator.Names.Single), LocalSymbol)
4146
Dim targetType As TypeSymbol = CType(model.
GetDeclaredSymbol
(variableDeclarator.Names.Single), LocalSymbol).Type
4148
Dim local As LocalSymbol = CType(model.
GetDeclaredSymbol
(variableDeclarator.Names.Single), LocalSymbol)
Semantics\InterpolatedStringTests.vb (2)
1224
Dim vSymbol = CType(sm.
GetDeclaredSymbol
(root.DescendantNodes().OfType(Of ModifiedIdentifierSyntax).Single()), ILocalSymbol)
1273
Dim vSymbol = CType(sm.
GetDeclaredSymbol
(root.DescendantNodes().OfType(Of ModifiedIdentifierSyntax).Single()), ILocalSymbol)
Semantics\Lambda_AnonymousDelegateInference.vb (8)
207
Dim x1 = DirectCast(semanticModel.
GetDeclaredSymbol
(node1), LocalSymbol)
216
Dim x2 = DirectCast(semanticModel.
GetDeclaredSymbol
(node2), LocalSymbol)
225
Dim x3 = DirectCast(semanticModel.
GetDeclaredSymbol
(node3), LocalSymbol)
234
Dim x4 = DirectCast(semanticModel.
GetDeclaredSymbol
(node4), LocalSymbol)
243
Dim x5 = DirectCast(semanticModel.
GetDeclaredSymbol
(node5), LocalSymbol)
252
Dim x6 = DirectCast(semanticModel.
GetDeclaredSymbol
(node6), LocalSymbol)
261
Dim x7 = DirectCast(semanticModel.
GetDeclaredSymbol
(node7), LocalSymbol)
269
Dim x8 = DirectCast(semanticModel.
GetDeclaredSymbol
(node8), LocalSymbol)
Semantics\LambdaSemanticInfoTests.vb (2)
537
Dim e = semanticModel.
GetDeclaredSymbol
(node1)
628
Dim symbol = DirectCast(semanticModel.
GetDeclaredSymbol
(node1), LocalSymbol)
Semantics\MultiDimensionalTest.vb (1)
324
Dim symbol = model.
GetDeclaredSymbol
(node)
Semantics\QueryExpressions_SemanticModel.vb (40)
121
Dim s6 = semanticModel1.
GetDeclaredSymbol
(node6)
129
Dim s7 = DirectCast(semanticModel1.
GetDeclaredSymbol
(node7), RangeVariableSymbol)
176
Assert.Same(s4, semanticModel1.
GetDeclaredSymbol
(node8))
347
Dim s6 = semanticModel1.
GetDeclaredSymbol
(node6)
351
Dim s7 = DirectCast(semanticModel1.
GetDeclaredSymbol
(node7), RangeVariableSymbol)
398
Assert.Same(s4, semanticModel1.
GetDeclaredSymbol
(node8))
567
Dim s6 = semanticModel1.
GetDeclaredSymbol
(node6)
571
Dim s7 = DirectCast(semanticModel1.
GetDeclaredSymbol
(node7), RangeVariableSymbol)
618
Assert.Same(s4, semanticModel1.
GetDeclaredSymbol
(node8))
811
Dim s6 = semanticModel1.
GetDeclaredSymbol
(node6)
815
Dim s7 = DirectCast(semanticModel1.
GetDeclaredSymbol
(node7), RangeVariableSymbol)
862
Assert.Same(s4, semanticModel1.
GetDeclaredSymbol
(node8))
1093
Assert.Same(s1, semanticModel.
GetDeclaredSymbol
(node2))
1165
Dim z = DirectCast(semanticModel.
GetDeclaredSymbol
(node10), RangeVariableSymbol)
1570
Dim w1 = DirectCast(semanticModel.
GetDeclaredSymbol
(node4), RangeVariableSymbol)
1665
Assert.Same(x1, semanticModel.
GetDeclaredSymbol
(DirectCast(node1.Parent, ExpressionRangeVariableSyntax).NameEquals.Identifier))
1694
Assert.Same(w1, semanticModel.
GetDeclaredSymbol
(DirectCast(node4.Parent, ExpressionRangeVariableSyntax).NameEquals.Identifier))
2121
Assert.Same(x1, semanticModel.
GetDeclaredSymbol
(DirectCast(node1.Parent, CollectionRangeVariableSyntax).Identifier))
2143
Assert.Same(w1, semanticModel.
GetDeclaredSymbol
(DirectCast(node4.Parent, CollectionRangeVariableSyntax).Identifier))
2169
Dim s3 = DirectCast(semanticModel.
GetDeclaredSymbol
(node7), RangeVariableSymbol)
2174
s3 = DirectCast(semanticModel.
GetDeclaredSymbol
(node8), RangeVariableSymbol)
2523
Dim x1 = DirectCast(semanticModel.
GetDeclaredSymbol
(node1), RangeVariableSymbol)
2550
Dim y1 = DirectCast(semanticModel.
GetDeclaredSymbol
(node3), RangeVariableSymbol)
2555
Dim x3 = DirectCast(semanticModel.
GetDeclaredSymbol
(node4), RangeVariableSymbol)
2687
Assert.Same(i1, semanticModel.
GetDeclaredSymbol
(DirectCast(node1.Parent.Parent, ExpressionRangeVariableSyntax).NameEquals.Identifier))
2738
Assert.Same(k1, semanticModel.
GetDeclaredSymbol
(DirectCast(node4.Parent.Parent, ExpressionRangeVariableSyntax).NameEquals.Identifier))
2796
Assert.Same(k2, semanticModel.
GetDeclaredSymbol
(node8))
2800
Dim k3 = semanticModel.
GetDeclaredSymbol
(node9)
2891
Dim x1 = DirectCast(semanticModel.
GetDeclaredSymbol
(node1), RangeVariableSymbol)
2918
Dim x4 = DirectCast(semanticModel.
GetDeclaredSymbol
(node8), RangeVariableSymbol)
2929
Dim y1 = DirectCast(semanticModel.
GetDeclaredSymbol
(node3), RangeVariableSymbol)
2934
Dim x3 = DirectCast(semanticModel.
GetDeclaredSymbol
(node4), RangeVariableSymbol)
3297
Dim s1 = DirectCast(semanticModel.
GetDeclaredSymbol
(node1), RangeVariableSymbol)
3306
Dim s2 = DirectCast(semanticModel.
GetDeclaredSymbol
(node2), RangeVariableSymbol)
3312
Dim x1 = DirectCast(semanticModel.
GetDeclaredSymbol
(node3), RangeVariableSymbol)
3342
Dim x2 = DirectCast(semanticModel.
GetDeclaredSymbol
(node5), RangeVariableSymbol)
3501
Dim s1 = DirectCast(semanticModel.
GetDeclaredSymbol
(node1), RangeVariableSymbol)
3510
Dim s2 = DirectCast(semanticModel.
GetDeclaredSymbol
(node2), RangeVariableSymbol)
3516
Dim x1 = DirectCast(semanticModel.
GetDeclaredSymbol
(node3), RangeVariableSymbol)
3546
Dim x2 = DirectCast(semanticModel.
GetDeclaredSymbol
(node5), RangeVariableSymbol)
Semantics\UsingStatementTest.vb (1)
326
Dim symbol = model.
GetDeclaredSymbol
(y)
Semantics\VariableTypeInference.vb (1)
706
Dim varSymbol = model.
GetDeclaredSymbol
(vardecl)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (40)
SymbolDisplay\SymbolDisplayTests.vb (1)
5483
Dim type = DirectCast(model.
GetDeclaredSymbol
(declarator.Names(0)), ILocalSymbol).Type
SymbolsTests\AnonymousDelegates\AnonymousDelegates_CreationAndEmit.vb (14)
302
Dim x16 = DirectCast(semanticModel.
GetDeclaredSymbol
(node16), LocalSymbol).Type
319
Dim x15 = DirectCast(semanticModel.
GetDeclaredSymbol
(node15), LocalSymbol).Type
331
Dim x14 = DirectCast(semanticModel.
GetDeclaredSymbol
(node14), LocalSymbol).Type
342
Dim x13 = DirectCast(semanticModel.
GetDeclaredSymbol
(node13), LocalSymbol).Type
354
Dim x12 = DirectCast(semanticModel.
GetDeclaredSymbol
(node12), LocalSymbol).Type
360
Dim x11 = DirectCast(semanticModel.
GetDeclaredSymbol
(node11), LocalSymbol).Type
366
Dim x10 = DirectCast(semanticModel.
GetDeclaredSymbol
(node10), LocalSymbol).Type
372
Dim x7 = DirectCast(semanticModel.
GetDeclaredSymbol
(node7), LocalSymbol).Type
381
Dim x5 = DirectCast(semanticModel.
GetDeclaredSymbol
(node5), LocalSymbol).Type
387
Dim x4 = DirectCast(DirectCast(semanticModel.
GetDeclaredSymbol
(node4), LocalSymbol).Type, NamedTypeSymbol)
395
Dim x2 = DirectCast(DirectCast(semanticModel.
GetDeclaredSymbol
(node2), LocalSymbol).Type, NamedTypeSymbol)
406
Dim x1 = DirectCast(DirectCast(semanticModel.
GetDeclaredSymbol
(node1), LocalSymbol).Type, NamedTypeSymbol)
419
Dim x16_2 = DirectCast(semanticModel2.
GetDeclaredSymbol
(node16), LocalSymbol).Type
423
Dim x1_2 = DirectCast(semanticModel2.
GetDeclaredSymbol
(node1), LocalSymbol).Type
SymbolsTests\AnonymousTypes\AnonymousTypesSemanticsTests.vb (19)
111
DirectCast(model.
GetDeclaredSymbol
(declaratorQ.Names(0)), LocalSymbol),
118
DirectCast(model.
GetDeclaredSymbol
(declaratorX.Names(0)), LocalSymbol),
125
DirectCast(model.
GetDeclaredSymbol
(declaratorZ.Names(0)), LocalSymbol),
246
Dim typeW = DirectCast(model.
GetDeclaredSymbol
(declaratorW.Names(0)), LocalSymbol).Type
251
CheckAnonymousTypeImplicit(DirectCast(model.
GetDeclaredSymbol
(declaratorZF.Names(0)), LocalSymbol),
261
CheckAnonymousTypeImplicit(DirectCast(model.
GetDeclaredSymbol
(declaratorZL.Names(0)), LocalSymbol),
263
DirectCast(model.
GetDeclaredSymbol
(declaratorZF.Names(0)), LocalSymbol).Type,
317
Dim typeT = DirectCast(model.
GetDeclaredSymbol
(declaratorT.Names(0)), LocalSymbol).Type
322
CheckAnonymousTypeImplicit(DirectCast(model.
GetDeclaredSymbol
(declaratorA.Names(0)), LocalSymbol),
332
CheckAnonymousTypeImplicit(DirectCast(model.
GetDeclaredSymbol
(declaratorB.Names(0)), LocalSymbol),
334
DirectCast(model.
GetDeclaredSymbol
(declaratorA.Names(0)), LocalSymbol).Type,
384
Dim typeT = DirectCast(model.
GetDeclaredSymbol
(declaratorT.Names(0)), LocalSymbol).Type
389
CheckAnonymousTypeImplicit(DirectCast(model.
GetDeclaredSymbol
(declaratorA.Names(0)), LocalSymbol),
399
Dim delegateA = DirectCast(model.
GetDeclaredSymbol
(declaratorA.Names(0)), LocalSymbol).Type
400
CheckAnonymousTypeImplicit(DirectCast(model.
GetDeclaredSymbol
(declaratorB.Names(0)), LocalSymbol),
1860
Dim localA3 = TryCast(model.
GetDeclaredSymbol
(statement3.Declarators(0).Names(0)), LocalSymbol)
1861
Dim localA4 = TryCast(model.
GetDeclaredSymbol
(statement4.Declarators(0).Names(0)), LocalSymbol)
1910
Dim localA3 = TryCast(model.
GetDeclaredSymbol
(statement3.Declarators(0).Names(0)), LocalSymbol)
1911
Dim localA4 = TryCast(model.
GetDeclaredSymbol
(statement4.Declarators(0).Names(0)), LocalSymbol)
SymbolsTests\Source\EventTests.vb (4)
2427
Dim xSym = model.
GetDeclaredSymbol
(x)
2467
Dim xSym = model.
GetDeclaredSymbol
(x)
2507
Dim xSym = model.
GetDeclaredSymbol
(x)
2561
Dim xSym = model.
GetDeclaredSymbol
(x)
SymbolsTests\Source\SourceSymbolTests.vb (2)
84
Dim r1Type = model.
GetDeclaredSymbol
(r1)
90
Dim r2Type = model.
GetDeclaredSymbol
(r2)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
SemanticModelExtensions.vb (2)
128
Dim variableDeclaration = semanticModel.
GetDeclaredSymbol
(variableDeclarator.Names(0), cancellationToken)
143
Dim variableDeclaration = semanticModel.
GetDeclaredSymbol
(variableDeclarator.Names(0), cancellationToken)
Simplification\Reducers\VisualBasicVariableDeclaratorReducer.vb (1)
147
Dim declaredSymbol = semanticModel.
GetDeclaredSymbol
(modifiedIdentifier)
VariableDeclaratorSyntaxExtensions.vb (1)
39
Dim localSymbol = TryCast(semanticModel.
GetDeclaredSymbol
(name), ILocalSymbol)
VisualBasicSemanticFacts.vb (1)
227
Select(Function(n) semanticModel.
GetDeclaredSymbol
(n, cancellationToken))
VisualBasicTypeInferenceService.TypeInferrer.vb (1)
610
Dim symbol = SemanticModel.
GetDeclaredSymbol
(name, CancellationToken)
Microsoft.VisualStudio.LanguageServices.VisualBasic (2)
Help\VisualBasicHelpContextService.Visitor.vb (2)
593
Dim symbol = _semanticModel.
GetDeclaredSymbol
(node, _cancellationToken)
814
Dim local = TryCast(_semanticModel.
GetDeclaredSymbol
(bestName, _cancellationToken), ILocalSymbol)