private static IType checkArrowExpression(Context context, MethodType requiredType, IExpression expression) { context = expression is ContextualExpression ? ((ContextualExpression)expression).Calling : context.getCallingContext(); ArrowExpression arrow = (ArrowExpression)(expression is ArrowExpression ? expression : ((ContextualExpression)expression).Expression); return(requiredType.checkArrowExpression(context, arrow)); }
public IType checkArrowExpression(Context context, ArrowExpression expression) { context = context.newChildContext(); this.method.registerParameters(context); expression.CheckReturnType(context, this.method.getReturnType()); return(this); }
public ArrowValue(IMethodDeclaration method, Context calling, ArrowExpression expression) : base(calling, expression) { this.method = method; }