protected override CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { return(request.InsertRepresentationValue(GetId()) .AssertNotNull(() => new CmlRuntimeError_InvalidIdException("representation", GetId()))); }
public abstract CmlClass AssertGetClass(CmlContext context);
public override object Instance(CmlContext context) { return(operation()); }
public CmlContext_Child_UnitSpace(CmlContext p, CmlUnitSpace s) : base(p) { unit_space = s; }
static public RepresentationEngine GetEngine(this CmlContext item) { return(item.GetTargetInfo().GetEngine()); }
public void Compile(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { value = CompileValue(context, request, this_value); }
protected abstract void ApplyInternal(CmlContext context, REPRESENTATION_TYPE representation);
protected override void ApplyInternal(CmlContext context, REPRESENTATION_TYPE representation) { process(context, representation); }
public abstract object Instance(CmlContext context);
public object AssertInstance(CmlContext context, string tag, CmlEntity entity) { return(GetInstancer(tag).IfNotNull(i => i.Instance(context, entity)) .AssertNotNull(() => new CmlRuntimeError_InvalidIdException("entity", tag))); }
public object AssertInstanceBase(CmlContext context, string tag) { return(instancers.GetValue(tag) .AssertNotNull(() => new CmlRuntimeError_InvalidIdException("instancer", tag)) .Instance(context)); }
public void AssertApplyGeneralModifiers(CmlContext context, object representation) { GetGeneralModifiers(representation.GetTypeEX()) .Process(m => m.Apply(context, representation)); }
public abstract void SolidifyInstance(CmlContext context, object representation, CmlSet set);
protected override ILStatement CompileILStatement(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { GetSingleStatement().Compile(context, request, this_value); return(GetSingleStatement().GetILStatement()); }
public override object Instance(CmlContext context) { return(GetConstructor().Invoke(context)); }
public override CmlValue Solidify(CmlContext context) { return(GetLinkSourceWithEntitySource().Solidify(context)); }
protected abstract CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value);
public override CmlValue Solidify(CmlContext context) { return(GetFunctionSource().Solidify(context)); }
public EffigyLink_Single(CmlContext context, VariableInstance v, EffigySingleDestination d, EffigyClassInfo c) : base(context, c) { variable_instance = v; destination = d; }
private void SolidifyInstanceInternal(CmlValue value, object representation, EffigyLink effigy_link, CmlContext context) { throw new CmlRuntimeError_InfoSupportException(value.GetTypeEX(), set_member); }
protected override CmlScriptValue CompileValue(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { GetSubExpression().Compile(context, request, request); return(GetSubExpression().GetValue()); }
protected override object InstanceInternal(CmlContext context) { return(entity.Instance(context)); }
static public CmlContext NewUnitSpace(this CmlContext item) { return(new CmlContext_Child_UnitSpace(item, new CmlUnitSpace())); }
protected abstract ILStatement CompileILStatement(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value);
private bool PushToRepresentation(CmlValue_SystemValue value, object representation, CmlContext context) { variable.SetContents(representation, value.GetSystemValue()); return(true); }
public void Compile(CmlContext context, CmlScriptRequest request, CmlScriptValue this_value) { il_statement = CompileILStatement(context, request, this_value); }
public override CmlClass AssertGetClass(CmlContext context) { return(new CmlClass_Entity(context.GetTargetInfo().GetTargetType(), "<inline>", entity)); }
public override CmlValue Solidify(CmlContext context) { return(new CmlValue_Function(GetFunction().CompileFunctionInstance(context), this)); }
public CmlContext_Child_FragmentSpace(CmlContext p, CmlFragmentSpace s) : base(p) { fragment_space = s; }
private void SolidifyInstanceInternal(CmlValue_Link value, object representation, EffigyLink effigy_link, CmlContext context) { context.AddVariableLink( value.GetGroup(), new VariableLink_Simple_Process( new VariableNode(value.GetVariableInstance()), new VariableNode(variable.CreateStrongInstance(representation)), o => effigy_link.GetValues().FindIndexOf(o), i => effigy_link.GetValues().Get(i.ConvertEX <int>()) ) ); }