示例#1
0
        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);
        }
示例#2
0
        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));
        }
示例#3
0
 public AccessorResult(InputObject obj)
 {
     IsObject = true;
     Object   = obj;
 }