public InputObject PrintObject(string name) { InputObject o = new InputObject(name, Definition.ScopeId); o.Implementation.ParentScope = Definition.ParentScope; o.Implementation.PrintChannel = Definition.PrintChannel; Definition.CopyFull(o.Implementation); return(o); }
public static AccessorResult AccessFindObject(InputContext context, string name, string field) { // first find the object name = name.ToLower(); InputObject o = context.GetObject(name); if (o == null) { throw new Exception("Object '" + name + "' undefined when accessing field '" + field + "'."); } return(AccessObject(context, o, field)); }
public AccessorResult(InputObject obj) { IsObject = true; Object = obj; }