public override object VisitInstanceFunctionCall(BoundInstanceFunctionCall x) { return(x.Update( (BoundExpression)Accept(x.Instance), (BoundRoutineName)Accept(x.Name), VisitImmutableArray(x.ArgumentsInSourceOrder), VisitImmutableArray(x.TypeArguments))); }
public override void VisitInstanceFunctionCall(BoundInstanceFunctionCall call) { // check target type CheckMethodCallTargetInstance(call.Instance, call.Name.NameValue.Name.Value); // TODO: Enable the diagnostic when several problems are solved (such as __call()) //CheckUndefinedMethodCall(call, call.Instance?.ResultType, call.Name); base.VisitInstanceFunctionCall(call); }
public override T VisitInstanceFunctionCall(BoundInstanceFunctionCall call) { // TODO: Consider checking if there are enough situations where this makes sense // (it could only work if IncludeSubclasses is false or the class is final) //CheckUndefinedMethodCall(call, call.Instance?.ResultType, call.Name); // check target type CheckMethodCallTargetInstance(call.Instance, call.Name.NameValue.Name.Value); // check deprecated CheckObsoleteSymbol(call.PhpSyntax, call.TargetMethod, isMemberCall: true); // return base.VisitInstanceFunctionCall(call); }