3 types derived from SourceMethodSymbol
Microsoft.CodeAnalysis.VisualBasic (3)
Symbols\Source\SourceDelegateMethodSymbol.vb (1)
20
Inherits
SourceMethodSymbol
Symbols\Source\SourceMethodSymbol.vb (1)
2023
Inherits
SourceMethodSymbol
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
14
Inherits
SourceMethodSymbol
3 instantiations of SourceMethodSymbol
Microsoft.CodeAnalysis.VisualBasic (3)
Symbols\Source\SourceDelegateMethodSymbol.vb (1)
33
MyBase.
New
(delegateType, flags, binder.GetSyntaxReference(syntax), delegateType.Locations)
Symbols\Source\SourceMethodSymbol.vb (1)
2038
MyBase.
New
(containingType, flags, syntaxRef, locations)
Symbols\Source\SourcePropertyAccessorSymbol.vb (1)
34
MyBase.
New
(
73 references to SourceMethodSymbol
Microsoft.CodeAnalysis.VisualBasic (57)
Analysis\FlowAnalysis\FlowAnalysisPass.vb (2)
23
Dim sourceMethod As
SourceMethodSymbol
= TryCast(method,
SourceMethodSymbol
)
Binding\BinderBuilder.vb (6)
293
Dim sourceMethod = TryCast(target,
SourceMethodSymbol
)
314
Dim methodSymbol = TryCast(containingSymbol,
SourceMethodSymbol
)
334
Dim methodSymbol = TryCast(parameterSymbol.ContainingSymbol,
SourceMethodSymbol
)
382
Public Shared Function CreateBinderForGenericMethodDeclaration(methodSymbol As
SourceMethodSymbol
, containingBinder As Binder) As Binder
391
methodSymbol As
SourceMethodSymbol
) As Binder
415
methodSymbol As
SourceMethodSymbol
) As Binder
Binding\BinderFactory.vb (8)
376
Dim methodSymbol = DirectCast(
SourceMethodSymbol
.FindSymbolFromSyntax(methodSyntax, _tree, containingType),
SourceMethodSymbol
)
395
Dim eventSymbol = DirectCast(
SourceMethodSymbol
.FindSymbolFromSyntax(methodSyntax, _tree, containingType), SourceEventSymbol)
404
Dim propertySymbol = DirectCast(
SourceMethodSymbol
.FindSymbolFromSyntax(methodSyntax, _tree, containingType), SourcePropertySymbol)
532
symbol =
SourceMethodSymbol
.FindSymbolFromSyntax(
540
symbol =
SourceMethodSymbol
.FindSymbolFromSyntax(
635
Dim symbol =
SourceMethodSymbol
.FindSymbolFromSyntax(methodSyntax, _tree, containingType)
639
Dim methodSymbol = DirectCast(symbol,
SourceMethodSymbol
)
Binding\MethodBodyBinder.vb (2)
48
Debug.Assert(Not TypeOf methodSymbol Is
SourceMethodSymbol
OrElse
50
(methodBlock Is DirectCast(methodSymbol,
SourceMethodSymbol
).BlockSyntax AndAlso
Compilation\DocumentationComments\DocumentationCommentCompiler.Method.vb (4)
29
Dim sourceMethod As
SourceMethodSymbol
=
31
DirectCast(TryCast(symbol, SourceDeclareMethodSymbol),
SourceMethodSymbol
))
40
Private Function WriteDocumentationCommentForMethod(method As
SourceMethodSymbol
) As Boolean
57
Dim implementationPart = TryCast(method.PartialImplementationPart,
SourceMethodSymbol
)
Compilation\MethodCompiler.vb (3)
669
If CType(method,
SourceMethodSymbol
).SetDiagnostics(ImmutableArray(Of Diagnostic).Empty) Then
1178
Dim sourceMethod = TryCast(method,
SourceMethodSymbol
)
1216
Dim sourceMethod = TryCast(method,
SourceMethodSymbol
)
Compilation\SyntaxTreeSemanticModel.vb (2)
998
Return
SourceMethodSymbol
.FindSymbolFromSyntax(declarationSyntax, _syntaxTree, implicitType)
1038
Return
SourceMethodSymbol
.FindSymbolFromSyntax(declarationSyntax, _syntaxTree, containingType)
Declarations\DeclarationTreeBuilder.vb (1)
737
Dim name =
SourceMethodSymbol
.GetMemberNameFromSyntax(methodDecl)
Lowering\AsyncRewriter\AsyncRewriter.vb (1)
109
Dim sourceMethod = TryCast(method,
SourceMethodSymbol
)
Symbols\Source\ImplementsHelper.vb (2)
45
Dim sourceMethod = TryCast(sourceSym,
SourceMethodSymbol
)
540
Public Sub ValidateImplementedMethodConstraints(implementingMethod As
SourceMethodSymbol
,
Symbols\Source\SourceComplexParameterSymbol.vb (1)
300
Dim method = TryCast(container,
SourceMethodSymbol
)
Symbols\Source\SourceMemberContainerTypeSymbol.vb (14)
1904
Private Sub ReportErrorsOnPartialMethodImplementation(partialMethod As
SourceMethodSymbol
,
1905
implMethod As
SourceMethodSymbol
,
1974
Private Function ComparePartialMethodSignatures(partialDeclaration As
SourceMethodSymbol
, candidate As
SourceMethodSymbol
) As Boolean
2456
Dim sourceMethodSymbol As
SourceMethodSymbol
= TryCast(symbol,
SourceMethodSymbol
)
2686
diagBag As DiagnosticBag) As
SourceMethodSymbol
2689
Return
SourceMethodSymbol
.CreateRegularMethod(Me, DirectCast(methodBaseSyntax, MethodStatementSyntax), binder, diagBag)
2691
Return
SourceMethodSymbol
.CreateConstructor(Me, DirectCast(methodBaseSyntax, SubNewStatementSyntax), binder, diagBag)
2693
Return
SourceMethodSymbol
.CreateOperator(Me, DirectCast(methodBaseSyntax, OperatorStatementSyntax), binder, diagBag)
2695
Return
SourceMethodSymbol
.CreateDeclareMethod(Me, DirectCast(methodBaseSyntax, DeclareStatementSyntax), binder, diagBag)
2799
Dim sourceMethodsWithHandles As ArrayBuilder(Of
SourceMethodSymbol
) = Nothing
2803
Dim sourceMethod = TryCast(member,
SourceMethodSymbol
)
2810
sourceMethodsWithHandles = ArrayBuilder(Of
SourceMethodSymbol
).GetInstance
Symbols\Source\SourceMemberMethodSymbol.vb (1)
97
Protected Overrides ReadOnly Property BoundAttributesSource As
SourceMethodSymbol
Symbols\Source\SourceMethodSymbol.vb (8)
79
diagBag As DiagnosticBag) As
SourceMethodSymbol
220
diagBag As DiagnosticBag) As
SourceMethodSymbol
306
) As
SourceMethodSymbol
381
diagBag As DiagnosticBag) As
SourceMethodSymbol
1334
Protected Overridable ReadOnly Property BoundAttributesSource As
SourceMethodSymbol
1346
''' So far we only need to return <see cref="SourcePropertySymbol"/>. If we ever needed to return a <see cref="
SourceMethodSymbol
"/>
1803
Dim methodImpl As
SourceMethodSymbol
= TryCast(If(Me.IsPartial, PartialImplementationPart, Me),
SourceMethodSymbol
)
Symbols\Source\SourceNamedTypeSymbol_GroupClass.vb (1)
333
Dim modifiers As SourceMemberFlags =
SourceMethodSymbol
.DecodeConstructorModifiers(constructorSyntax.Modifiers, Me, binder, diagnostics).AllFlags
Symbols\Symbol_Attributes.vb (1)
537
Dim method = DirectCast(Me,
SourceMethodSymbol
)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (1)
EditAndContinue\Helpers\VisualBasicEditAndContinueTestHelpers.vb (1)
49
Return LocalVariableDeclaratorsCollector.GetDeclarators(DirectCast(method,
SourceMethodSymbol
))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Emit\EditAndContinue\EditAndContinueTestBase.vb (2)
98
Friend Shared Function GetAllLocals(method As
SourceMethodSymbol
) As ImmutableArray(Of VisualBasicSyntaxNode)
130
Dim sourceMethod0 = DirectCast(method0,
SourceMethodSymbol
)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (12)
Binding\MethodBodyBindingTests.vb (2)
78
Dim meth1 = DirectCast(classC.GetMembers("meth1").Single(),
SourceMethodSymbol
)
79
Dim meth2 = DirectCast(classC.GetMembers("meth2").Single(),
SourceMethodSymbol
)
FlowAnalysis\FlowTestBase.vb (1)
26
Dim sourceSymbol = TryCast(method,
SourceMethodSymbol
)
Semantics\Conversions.vb (3)
47
Dim methodDeclSymbol = DirectCast(sourceModule.GlobalNamespace.GetTypeMembers("C1").Single().GetMembers("MethodDecl").Single(),
SourceMethodSymbol
)
226
Dim methodDeclSymbol = DirectCast(sourceModule.GlobalNamespace.GetTypeMembers("C1").Single().GetMembers("MethodDecl").Single(),
SourceMethodSymbol
)
1077
Dim methodDeclSymbol = DirectCast(sourceModule.GlobalNamespace.GetTypeMembers("C1").Single().GetMembers("MethodDecl").Single(),
SourceMethodSymbol
)
Semantics\GetSemanticInfoTests.vb (3)
3078
Dim meth_goo = DirectCast(class_cls2.GetMembers("goo").Single(),
SourceMethodSymbol
)
3327
Dim sym = DirectCast(semanticSummary.Symbol,
SourceMethodSymbol
)
3351
Dim sym = DirectCast(semanticSummary.Symbol,
SourceMethodSymbol
)
Semantics\OverloadResolution.vb (3)
95
Dim optionStrictOnContext = DirectCast(sourceModule.GlobalNamespace.GetTypeMembers("OptionStrictOn").Single().GetMembers("Context").Single(),
SourceMethodSymbol
)
96
Dim optionStrictOffContext = DirectCast(sourceModule.GlobalNamespace.GetTypeMembers("OptionStrictOff").Single().GetMembers("Context").Single(),
SourceMethodSymbol
)
3061
Dim optionStrictOffContext = DirectCast(sourceModule.GlobalNamespace.GetTypeMembers("OptionStrictOff").Single().GetMembers("Context").Single(),
SourceMethodSymbol
)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
LocalVariableDeclaratorsCollector.vb (1)
17
Friend Shared Function GetDeclarators(method As
SourceMethodSymbol
) As ImmutableArray(Of SyntaxNode)