Пример #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;
 }