public ITerminalWrapper CreateWrapper(IStaticReturnType terminal) { if (terminal == null) { return(null); } return((ITerminalWrapper)CreateWrapperFor((dynamic)terminal)); }
public Type GetTypeByIdentifier(Identifier key) { if (!ContainsIdentifier(key)) { return(typeof(object)); } IStaticReturnType terminal = _identifierLookupTable[key] as IStaticReturnType; return(terminal != null?terminal.GetReturnType() : typeof(object)); }
public QuestionUnit(Identifier identifier, IStaticReturnType dataType, string displayText) : base(identifier, dataType, displayText) { }
public QuestionUnit(Identifier identifier, IStaticReturnType dataType, string displayText, SourceLocation sourceLocation) : base(identifier, dataType, displayText, sourceLocation) { }
public StatementUnit(Identifier identifier, Expression expression, string unitText, IStaticReturnType dataType, SourceLocation sourceLocation) : base(identifier, dataType, unitText, sourceLocation) { Expression = expression; }
Type DetermineType(IStaticReturnType type) { return type.GetReturnType(); }
public NumberWrapper(IStaticReturnType value) { throw new Exception("Resolution of this IResolvableTerminalType not implemented: " + value); }
private ITerminalWrapper CreateWrapperFor(IStaticReturnType terminal) { throw new QLError("Unrecognised type: " + terminal.GetType()); }
public ITerminalWrapper CreateWrapper(IStaticReturnType terminal) { if (terminal == null) return null; return (ITerminalWrapper)CreateWrapperFor((dynamic)terminal); }
protected UnitBase(Identifier identifier, IStaticReturnType dataType, string displayText, SourceLocation sourceLocation) : this(identifier, dataType, displayText) { SourceLocation = sourceLocation; }
protected UnitBase(Identifier identifier, IStaticReturnType dataType, string displayText) { Identifier = identifier; DataType = dataType; Text = UnwrapQuotes(displayText); }