protected override ILStatement CompileILStatement(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { GetConditionExpression().Compile(context, request, this_value); GetWhileStatement().Compile(context, request, this_value); return(new ILWhile( GetConditionExpression().GetValue().GetILValue(), GetWhileStatement().GetILStatement() )); }
protected override CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { return(this_value.GetIndirectValue(GetId()) .AssertNotNull(() => new CmlRuntimeError_InvalidIdForTypeException("value", GetId(), this_value.GetValueType()))); }
protected abstract CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value);
public void Compile(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { value = CompileValue(context, request, this_value); }
protected override ILStatement CompileILStatement(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { GetIndirectionExpression().Compile(context, request, this_value); GetFunctionCall().Compile(context, request, GetIndirectionExpression().GetValue()); return(GetFunctionCall().GetValue().GetILValue().CreateILCalculate()); }
protected override ILStatement CompileILStatement(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { GetBlock().Compile(context, request, this_value); return(GetBlock().GetILBlock()); }
public void Compile(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { il_statement = CompileILStatement(context, request, this_value); }
public void Compile(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value, CmlScriptValue l, CmlScriptValue r) { value = new CmlScriptValue_Basic( new ILBinaryOperatorInvokation(GetOperatorType(), l.GetILValue(), r.GetILValue()) ); }
protected override CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { return(new CmlScriptValue_Basic( ILLiteral.New(GetConstant()) )); }
protected abstract ILStatement CompileILStatement(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value);
public void AddExplicitIndirectValue(string id, CmlScriptValue value) { indirect_values.Add(id, value); }
protected override CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { GetLeft().Compile(context, request, this_value); GetRight().Compile(context, request, this_value); GetOperator().Compile(context, request, this_value, GetLeft().GetValue(), GetRight().GetValue()); return(GetOperator().GetValue()); }
protected override ILStatement CompileILStatement(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { GetIndirectionExpression().Compile(context, request, this_value); GetValueReference().Compile(context, request, GetIndirectionExpression().GetValue()); GetExpression().Compile(context, request, this_value); return(new ILAssign( GetValueReference().GetValue().GetILValue(), GetExpression().GetValue().GetILValue() )); }
public void Compile(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { GetExpressions().Process(e => e.Compile(context, request, request)); }
public void Compile(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { CmlScriptValue_Argument_Host parameter_host = request.AddPrimaryArgument(new CmlScriptValue_Argument_Host()); GetFunctionParameters().Process(p => p.Inject(parameter_host, request)); }
protected override CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { GetValueReference().Compile(context, request, this_value); return(GetValueReference().GetValue()); }
protected override CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { return request.InsertThisRepresentationValue() .AssertNotNull(() => new CmlRuntimeError_InvalidIdException("representation", "this")); }
protected override CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { GetIndirectionExpression().Compile(context, request, this_value); GetSubExpression().Compile(context, request, GetIndirectionExpression().GetValue()); return(GetSubExpression().GetValue()); }
protected override CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { return(request.GetParentValue()); }