17 references to GetDeclaredSymbol
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (16)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (7)
1478
Assert.Equal("Public Overridable Property Get DefProp(p As Integer) As String", model.
GetDeclaredSymbol
(defPropGetBlockSyntax).ToString())
1479
Assert.True(TypeOf (model.
GetDeclaredSymbol
(defPropGetBlockSyntax)) Is MethodSymbol, "API should return a MethodSymbol")
1481
Assert.Equal("Public Overridable Property Set DefProp(p As Integer, value As String)", model.
GetDeclaredSymbol
(defPropSetBlockSyntax).ToString())
1483
Assert.Equal("Public Property Set RegularProp(value As String)", model.
GetDeclaredSymbol
(regularPropSetBlockSyntax).ToString())
1705
Assert.Same(fSymbol2, model.
GetDeclaredSymbol
(DirectCast(tree.FindNodeOrTokenByKind(SyntaxKind.FunctionBlock, 1).AsNode(), MethodBlockSyntax)))
1706
Assert.Same(nSymbol, model.
GetDeclaredSymbol
(DirectCast(tree.FindNodeOrTokenByKind(SyntaxKind.ConstructorBlock, 1).AsNode(), ConstructorBlockSyntax)))
1707
Assert.Same(sSymbol, model.
GetDeclaredSymbol
(DirectCast(tree.FindNodeOrTokenByKind(SyntaxKind.SubBlock, 1).AsNode(), MethodBlockSyntax)))
Semantics\PartialMethodsTest.vb (9)
75
Dim pmSym01 = model1.
GetDeclaredSymbol
(pMethod01)
76
Dim pmSym02 = model2.
GetDeclaredSymbol
(pMethod02)
155
Dim pmSym01 = model1.
GetDeclaredSymbol
(pMethod01)
156
Dim pmSym02 = model2.
GetDeclaredSymbol
(pMethod02)
237
Dim pmSym01 = model1.
GetDeclaredSymbol
(pMethod01)
238
Dim pmSym02 = model2.
GetDeclaredSymbol
(pMethod02)
376
Dim pmSym01 = model1.
GetDeclaredSymbol
(pMethod01)
377
Dim pmSym02 = model2.
GetDeclaredSymbol
(pMethod02)
378
Dim pmSym03 = model3.
GetDeclaredSymbol
(pMethod03)
Microsoft.VisualStudio.LanguageServices.VisualBasic (1)
CodeModel\MethodXML\MethodXmlBuilder.vb (1)
693
Dim symbol = semanticModel.
GetDeclaredSymbol
(methodBlock)