示例#1
0
        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));
        }
示例#2
0
 public IType checkArrowExpression(Context context, ArrowExpression expression)
 {
     context = context.newChildContext();
     this.method.registerParameters(context);
     expression.CheckReturnType(context, this.method.getReturnType());
     return(this);
 }
示例#3
0
 public ArrowValue(IMethodDeclaration method, Context calling, ArrowExpression expression)
     : base(calling, expression)
 {
     this.method = method;
 }