Exemple #1
0
 public override IValue interpret(Context context)
 {
     context.enterMethod(this);
     try
     {
         CSharpNativeCall stmt = FindStatement();
         return(stmt.interpretNative(context, returnType));
     }
     finally
     {
         context.leaveMethod(this);
     }
 }
Exemple #2
0
        protected override IType fullCheck(Context context, bool isStart)
        {
            if (isStart)
            {
                context = context.newLocalContext();
                registerParameters(context);
            }
            if (parameters != null)
            {
                parameters.check(context);
            }
            CSharpNativeCall stmt = FindStatement();

            return(stmt.checkNative(context, returnType));
        }
Exemple #3
0
 public NativeGetterMethodDeclaration(String name, StatementList statements)
     : base(name, statements)
 {
     statement = findNativeStatement();
 }