127 references to Method
Microsoft.CodeAnalysis.VisualBasic (126)
Analysis\FlowAnalysis\AbstractFlowPass.vb (2)
1146Dim callsAreOmitted As Boolean = node.Method.CallsAreOmitted(node.Syntax, node.SyntaxTree) 1156Dim method As MethodSymbol = node.Method
Analysis\ForLoopVerification.vb (1)
138Return DirectCast(expression, BoundCall).Method
Analysis\InitializerRewriter.vb (1)
272Dim methodSymbol = callExpression.Method
Binding\Binder_Expressions.vb (4)
1146result = New BoundCall(typeExpr.Syntax, [call].Method, [call].MethodGroupOpt, [call].ReceiverOpt, [call].Arguments, 4639Dim method As MethodSymbol = DirectCast(operand, BoundCall).Method 4747Dim method As MethodSymbol = DirectCast(getAwaiter, BoundCall).Method 4841Dim method As MethodSymbol = DirectCast(getResult, BoundCall).Method
Binding\Binder_Invocation.vb (1)
144callExpr.Method,
Binding\Binder_Query.vb (1)
4680Dim delegateReturnType As TypeSymbol = DirectCast(boundCall, BoundCall).Method.Parameters(i).Type.DelegateOrExpressionDelegate(Me).DelegateInvokeMethod.ReturnType
Binding\Binder_Statements.vb (3)
2637warn = [call].Method.IsAsync AndAlso [call].Method.ContainingAssembly Is Me.Compilation.Assembly 4136DirectCast(boundMoveNextCall, BoundCall).Method.OriginalDefinition.ReturnType.SpecialType <> SpecialType.System_Boolean Then
Binding\MemberSemanticModel.vb (4)
752getEnumerator = getEnumeratorCall.Method 760moveNext = moveNextCall.Method 2264Debug.Assert(receiver Is Nothing OrElse Not node.Method.IsShared OrElse receiver.HasErrors) 2274ElseIf node.Method.IsShared Then
BoundTree\BoundAssignmentOperator.vb (1)
143Dim value = TryCast(TryCast(node, BoundCall)?.Method?.AssociatedSymbol, PropertySymbol)?.ReturnsByRef
BoundTree\BoundCall.vb (9)
52Method, 68Return Me.Method 79Debug.Assert(Arguments.Length = Method.ParameterCount) 80Dim isOperator As Boolean = (Method.MethodKind = MethodKind.UserDefinedOperator) 85Dim parameter As ParameterSymbol = Method.Parameters(i) 97If isLifted.GetValueOrDefault() AndAlso Not Method.ReturnType.IsNullableType() Then 98Debug.Assert(OverloadResolution.CanLiftType(Method.ReturnType) AndAlso 100Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(Method.ReturnType)) 102Debug.Assert(Type.IsSameTypeIgnoringAll(Method.ReturnType))
BoundTree\BoundConversion.vb (2)
72Debug.Assert(udc.Type.IsNullableType() AndAlso Not underlyingCall.Method.Parameters(0).Type.IsNullableType()) 92method = DirectCast(expr, BoundCall).Method
BoundTree\BoundUserDefinedBinaryOperator.vb (8)
39Debug.Assert(underlyingCall.Method.MethodKind = MethodKind.UserDefinedOperator AndAlso underlyingCall.Method.ParameterCount = 2) 44Dim parameter As ParameterSymbol = underlyingCall.Method.Parameters(i) 52Debug.Assert(underlyingCall.Type.IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType) OrElse 53(OverloadResolution.CanLiftType(underlyingCall.Method.ReturnType) AndAlso 54underlyingCall.Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType))) 58Dim parameter As ParameterSymbol = underlyingCall.Method.Parameters(i) 63Debug.Assert(underlyingCall.Type.IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType))
BoundTree\BoundUserDefinedConversion.vb (2)
62Debug.Assert(underlyingCall.Method.MethodKind = MethodKind.Conversion AndAlso underlyingCall.Method.ParameterCount = 1)
BoundTree\BoundUserDefinedUnaryOperator.vb (7)
33Debug.Assert(underlyingCall.Method.MethodKind = MethodKind.UserDefinedOperator AndAlso underlyingCall.Method.ParameterCount = 1) 36Dim parameter As ParameterSymbol = underlyingCall.Method.Parameters(0) 45Debug.Assert(underlyingCall.Type.IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType) OrElse 46(OverloadResolution.CanLiftType(underlyingCall.Method.ReturnType) AndAlso 47underlyingCall.Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType))) 50Debug.Assert(underlyingCall.Type.IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType))
CodeGen\EmitAddress.vb (2)
120Debug.Assert([call].Method.ReturnsByRef) 242Dim method = DirectCast(expression, BoundCall).Method
CodeGen\EmitExpression.vb (3)
962Dim method = [call].Method 1837Debug.Assert(left.Method.ReturnsByRef) 1941Debug.Assert(DirectCast(expression, BoundCall).Method.ReturnsByRef)
CodeGen\Optimizer\StackScheduler.Analyzer.vb (3)
629Return DirectCast(node, BoundCall).Method.ReturnsByRef 662If Not node.Method.IsShared Then 685Dim method As MethodSymbol = node.Method
Compilation\MethodCompiler.vb (4)
1425Return DirectCast(expression, BoundCall).Method 1841Not node.Method.IsShared AndAlso node.Method.OriginalDefinition.ContainingType Is _containingType Then 1847_calledMethods.Add(node.Method.OriginalDefinition)
Compilation\SemanticModel.vb (1)
1290symbolsBuilder.Add(parentCall.Method)
Generated\BoundNodes.xml.Generated.vb (3)
3102If method IsNot Me.Method OrElse methodGroupOpt IsNot Me.MethodGroupOpt OrElse receiverOpt IsNot Me.ReceiverOpt OrElse arguments <> Me.Arguments OrElse defaultArguments <> Me.DefaultArguments OrElse constantValueOpt IsNot Me.ConstantValueOpt OrElse isLValue <> Me.IsLValue OrElse suppressObjectClone <> Me.SuppressObjectClone OrElse type IsNot Me.Type Then 12359Return node.Update(node.Method, methodGroupOpt, receiverOpt, arguments, node.DefaultArguments, node.ConstantValueOpt, node.IsLValue, node.SuppressObjectClone, type) 13565New TreeDumperNode("method", node.Method, Nothing),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (1)
107rewritten.Update(rewritten.Method,
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (3)
43Dim method As MethodSymbol = node.Call.Method 97Dim method As MethodSymbol = node.Call.Method 254Dim method As MethodSymbol = node.Method
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (4)
368Dim method As MethodSymbol = node.Method 627_factory.MethodInfo([call].Method), 628ConvertArgumentsIntoArray(If([call].Method.IsShared AndAlso [call].Method.IsExtensionMethod,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (13)
66Dim isChecked As Boolean = node.Checked AndAlso IsIntegralType(node.Call.Method.ReturnType) 84Debug.Assert(Not isLifted OrElse Not node.Call.Method.ReturnType.IsNullableType) 89_factory.MethodInfo(node.Call.Method)) 94Debug.Assert(Not isLifted OrElse Not node.Call.Method.ReturnType.IsNullableType) 98_factory.MethodInfo(node.Call.Method)) 107Debug.Assert(operand.Call.Method.ReturnType.IsSameTypeIgnoringAll(operand.Call.Method.Parameters(0).Type) AndAlso 108operand.Call.Method.ReturnType.IsSameTypeIgnoringAll(operand.Call.Method.Parameters(1).Type)) 114_factory.MethodInfo(operand.Call.Method)) 676Dim parameters As ImmutableArray(Of ParameterSymbol) = [call].Method.Parameters 687Dim methodReturnType As TypeSymbol = [call].Method.ReturnType 691[call] = [call].Update([call].Method,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (1)
186Dim method As MethodSymbol = [call].Method
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
365Dim method As MethodSymbol = methodCall.Method
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (3)
147[call].Update([call].Method, 176Debug.Assert(Not isLifted OrElse Not node.Call.Method.ReturnType.IsNullableType) 180_factory.MethodInfo(node.Call.Method))
Lowering\LambdaRewriter\LambdaRewriter.vb (2)
1371If node.Method.MethodKind = MethodKind.Constructor AndAlso receiver IsNot Nothing AndAlso receiver.IsInstanceReference Then 1414Dim method = node.Method
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (8)
202If boundCall.Method.MethodKind = MethodKind.PropertyGet AndAlso 203boundCall.Method.AssociatedSymbol IsNot Nothing AndAlso 204boundCall.Method.AssociatedSymbol.IsMyGroupCollectionProperty Then 207DirectCast(boundCall.Method.AssociatedSymbol, PropertySymbol).AssociatedField, 1450Debug.Assert(leftCallInput.Type.IsSameTypeIgnoringAll(operatorCall.Method.Parameters(0).Type), 1452Debug.Assert(rightCallInput.Type.IsSameTypeIgnoringAll(operatorCall.Method.Parameters(1).Type), 1455Dim whenHasValue As BoundExpression = operatorCall.Update(operatorCall.Method, 1463type:=operatorCall.Method.ReturnType)
Lowering\LocalRewriter\LocalRewriter_Call.vb (1)
20Dim method As MethodSymbol = node.Method
Lowering\LocalRewriter\LocalRewriter_Conversion.vb (14)
374Return Not (t.Method = F.WellKnownMember(Of MethodSymbol)(WellKnownMember.System_Delegate__CreateDelegate, True) OrElse 375t.Method = F.WellKnownMember(Of MethodSymbol)(WellKnownMember.System_Delegate__CreateDelegate4, True) OrElse 376t.Method = F.WellKnownMember(Of MethodSymbol)(WellKnownMember.System_Reflection_MethodInfo__CreateDelegate, True)) 759Dim whenHasValue As BoundExpression = operatorCall.Update(operatorCall.Method, 1326Dim methodName As String = node.Method.Name 1328Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.System_Math__CeilingDouble) 1330Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.System_Math__FloorDouble) 1332Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.System_Math__RoundDouble) 1336Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Conversion__IntSingle) 1338Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Conversion__IntDouble) 1351Dim methodName As String = node.Method.Name 1355Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Conversion__FixSingle) 1357Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Conversion__FixDouble) 1362Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.System_Math__TruncateDouble)
Lowering\LocalRewriter\LocalRewriter_ExpressionStatement.vb (1)
41Return DirectCast(expression, BoundCall).Method.CallsAreOmitted(expression.Syntax, expression.SyntaxTree)
Lowering\LocalRewriter\LocalRewriter_RaiseEvent.vb (1)
62raiseCallExpression = raiseCallExpression.Update(raiseCallExpression.Method,
Lowering\LocalRewriter\LocalRewriter_StringConcat.vb (1)
120Dim method As MethodSymbol = boundCall.Method
Lowering\LocalRewriter\LocalRewriter_UnaryOperators.vb (3)
266Debug.Assert(callInput.Type.IsSameTypeIgnoringAll(operatorCall.Method.Parameters(0).Type), 269Dim whenHasValue As BoundExpression = operatorCall.Update(operatorCall.Method, 277type:=operatorCall.Method.ReturnType)
Lowering\MethodToClassRewriter\MethodToClassRewriter.vb (2)
136Dim newMethod As MethodSymbol = node.Method 141Dim methodBeingCalled As MethodSymbol = SubstituteMethodForMyBaseOrMyClassCall(receiverOpt, node.Method)
Operations\VisualBasicOperationFactory.vb (2)
439Dim targetMethod As IMethodSymbol = boundCall.Method 525Return If(boundUserDefinedUnaryOperator.UnderlyingExpression.Kind = BoundKind.Call, boundUserDefinedUnaryOperator.Call.Method, Nothing)
Operations\VisualBasicOperationFactory_Methods.vb (3)
141operatorMethod:=If(boundUserDefinedBinaryOperator.UnderlyingExpression.Kind = BoundKind.Call, boundUserDefinedBinaryOperator.Call.Method, Nothing), 173Return DeriveArguments(boundCall.Arguments, boundCall.Method.Parameters, boundCall.DefaultArguments) 579method = DirectCast(conversion.Operand, BoundUserDefinedConversion).Call.Method
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (1)
CompilationContext.vb (1)
553Return [call].Method.IsSub