public DOMElement_RuleAtom_Variable_Reference() { get_default_variable_type_context = new OperationCache <DOMEVariableTypeConcept>("get_default_variable_type_context", delegate() { DOMEVariableTypeConcept type = GetDefaultVariableTypeInternal(); HasInfo has_info = type as HasInfo; if (has_info != null) { return(has_info.ConvertInfoValue <DOMEVariableTypeConcept>("type", () => type, s => GetGrammarDefinition().GetTypeConcept(s) )); } return(type); }); }
public CmlValue_Link_Normal(VariableInstance v, HasInfo i) { variable_instance = v; info = i; }
public CmlValue_Function(FunctionInstance a, HasInfo i) { function_instance = a; info = i; }
static public string GetInfoValue(this HasInfo item, string name) { return(item.GetInfoSettings().Lookup(name)); }
static public T ConvertInfoValue <T>(this HasInfo item, string name, Operation <T> default_operation, Operation <T, string> operation) { return(item.GetInfoSettings().Convert(name, default_operation, operation)); }
static public bool IsInfoValueNot(this HasInfo item, string name, string value) { return(item.GetInfoSettings().IsNot(name, value)); }
static public bool IsInfoValueFalse(this HasInfo item, string name) { return(item.GetInfoSettings().IsFalse(name)); }
static public bool IsInfoValueDefault(this HasInfo item, string name) { return(item.GetInfoSettings().IsAsBacked(name)); }
static public string GetBoolInfoValue(this HasInfo item, string name, string if_true, string if_false) { return(item.GetInfoSettings().ConvertBool(name, if_true, if_false)); }