123 references to Method
Microsoft.CodeAnalysis.VisualBasic (123)
Analysis\FlowAnalysis\AbstractFlowPass.vb (3)
1155Dim callsAreOmitted As Boolean = node.Method.CallsAreOmitted(node.Syntax, node.SyntaxTree) 1165Dim method As MethodSymbol = node.Method 1214Dim 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)
1167result = New BoundCall(typeExpr.Syntax, [call].Method, [call].MethodGroupOpt, [call].ReceiverOpt, [call].Arguments, 4666Dim method As MethodSymbol = DirectCast(operand, BoundCall).Method 4774Dim method As MethodSymbol = DirectCast(getAwaiter, BoundCall).Method 4868Dim 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)
2666warn = [call].Method.IsAsync AndAlso [call].Method.ContainingAssembly Is Me.Compilation.Assembly 4165DirectCast(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)
41Debug.Assert(underlyingCall.Method.MethodKind = MethodKind.UserDefinedOperator AndAlso underlyingCall.Method.ParameterCount = 2) 46Dim parameter As ParameterSymbol = underlyingCall.Method.Parameters(i) 54Debug.Assert(underlyingCall.Type.IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType) OrElse 55(OverloadResolution.CanLiftType(underlyingCall.Method.ReturnType) AndAlso 56underlyingCall.Type.GetNullableUnderlyingType().IsSameTypeIgnoringAll(underlyingCall.Method.ReturnType))) 60Dim parameter As ParameterSymbol = underlyingCall.Method.Parameters(i) 65Debug.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)
967Dim method = [call].Method 1960Debug.Assert(left.Method.ReturnsByRef) 2064Debug.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)
1445Return DirectCast(expression, BoundCall).Method 1891Not node.Method.IsShared AndAlso node.Method.OriginalDefinition.ContainingType Is _containingType Then 1897_calledMethods.Add(node.Method.OriginalDefinition)
Compilation\SemanticModel.vb (1)
1294symbolsBuilder.Add(parentCall.Method)
Generated\BoundNodes.xml.Generated.vb (3)
3121If 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 12393Return node.Update(node.Method, methodGroupOpt, receiverOpt, arguments, node.DefaultArguments, node.ConstantValueOpt, node.IsLValue, node.SuppressObjectClone, type) 13602New TreeDumperNode("method", node.Method, Nothing),
Lowering\AsyncRewriter\AsyncRewriter.AsyncMethodToClassRewriter.Expressions.vb (1)
178rewritten.Update(rewritten.Method,
Lowering\Diagnostics\DiagnosticsPass_ExpressionLambdas.vb (3)
43Dim method As MethodSymbol = node.Call.Method 97Dim method As MethodSymbol = node.Call.Method 257Dim method As MethodSymbol = node.Method
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter.vb (4)
377Dim method As MethodSymbol = node.Method 655_factory.MethodInfo([call].Method, _factory.WellKnownType(WellKnownType.System_Reflection_MethodInfo)), 656ConvertArgumentsIntoArray(If([call].Method.IsShared AndAlso [call].Method.IsExtensionMethod,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_BinaryOperator.vb (13)
56Dim isChecked As Boolean = node.Checked AndAlso IsIntegralType(node.Call.Method.ReturnType) 74Debug.Assert(Not isLifted OrElse Not node.Call.Method.ReturnType.IsNullableType) 79_factory.MethodInfo(node.Call.Method, _factory.WellKnownType(WellKnownType.System_Reflection_MethodInfo))) 84Debug.Assert(Not isLifted OrElse Not node.Call.Method.ReturnType.IsNullableType) 88_factory.MethodInfo(node.Call.Method, _factory.WellKnownType(WellKnownType.System_Reflection_MethodInfo))) 171Debug.Assert(operand.Call.Method.ReturnType.IsSameTypeIgnoringAll(operand.Call.Method.Parameters(0).Type) AndAlso 172operand.Call.Method.ReturnType.IsSameTypeIgnoringAll(operand.Call.Method.Parameters(1).Type)) 178_factory.MethodInfo(operand.Call.Method, _factory.WellKnownType(WellKnownType.System_Reflection_MethodInfo))) 758Dim parameters As ImmutableArray(Of ParameterSymbol) = [call].Method.Parameters 769Dim methodReturnType As TypeSymbol = [call].Method.ReturnType 773[call] = [call].Update([call].Method,
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_ConditionalExpresion.vb (1)
189Dim method As MethodSymbol = [call].Method
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_Conversion.vb (1)
365Dim method As MethodSymbol = methodCall.Method
Lowering\ExpressionLambdaRewriter\ExpressionLambdaRewriter_UnaryOperator.vb (3)
160[call].Update([call].Method, 189Debug.Assert(Not isLifted OrElse Not node.Call.Method.ReturnType.IsNullableType) 193_factory.MethodInfo(node.Call.Method, _factory.WellKnownType(WellKnownType.System_Reflection_MethodInfo)))
Lowering\LambdaRewriter\LambdaRewriter.vb (2)
1419If node.Method.MethodKind = MethodKind.Constructor AndAlso receiver IsNot Nothing AndAlso receiver.IsInstanceReference Then 1462Dim method = node.Method
Lowering\LocalRewriter\LocalRewriter_BinaryOperators.vb (8)
197If boundCall.Method.MethodKind = MethodKind.PropertyGet AndAlso 198boundCall.Method.AssociatedSymbol IsNot Nothing AndAlso 199boundCall.Method.AssociatedSymbol.IsMyGroupCollectionProperty Then 202DirectCast(boundCall.Method.AssociatedSymbol, PropertySymbol).AssociatedField, 1445Debug.Assert(leftCallInput.Type.IsSameTypeIgnoringAll(operatorCall.Method.Parameters(0).Type), 1447Debug.Assert(rightCallInput.Type.IsSameTypeIgnoringAll(operatorCall.Method.Parameters(1).Type), 1450Dim whenHasValue As BoundExpression = operatorCall.Update(operatorCall.Method, 1458type:=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.SpecialMember(SpecialMember.System_Delegate__CreateDelegate, True) OrElse 375t.Method = F.SpecialMember(SpecialMember.System_Delegate__CreateDelegate4, True) OrElse 376t.Method = F.WellKnownMember(Of MethodSymbol)(WellKnownMember.System_Reflection_MethodInfo__CreateDelegate, True)) 673Dim whenHasValue As BoundExpression = operatorCall.Update(operatorCall.Method, 1240Dim methodName As String = node.Method.Name 1242Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.System_Math__CeilingDouble) 1244Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.System_Math__FloorDouble) 1246Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.System_Math__RoundDouble) 1250Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Conversion__IntSingle) 1252Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Conversion__IntDouble) 1265Dim methodName As String = node.Method.Name 1269Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Conversion__FixSingle) 1271Return node.Method = Me.Compilation.GetWellKnownTypeMember(WellKnownMember.Microsoft_VisualBasic_Conversion__FixDouble) 1276Return 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)
Lowering\WithExpressionRewriter.vb (1)
350If Not state.IsDraftRewrite OrElse Not DirectCast(value, BoundCall).Method.ReturnsByRef Then