Beispiel #1
0
 public CodeMember(ScriptNumber mem, CodeObject parent)
 {
     this.Parent             = parent;
     this.MemberNumber       = mem.ToInt32();
     this.MemberNumberObject = mem.ObjectValue;
     this.Type = MEMBER_TYPE.NUMBER;
 }
Beispiel #2
0
 public CodeMember(ScriptNumber mem, CodeObject parent)
 {
     this.Parent = parent;
     if (mem.ObjectValue is double)
     {
         this.MemberIndex = mem.ToInt32();
         this.Type        = MEMBER_TYPE.INDEX;
     }
     else
     {
         this.MemberNumber = mem.ObjectValue;
         this.Type         = MEMBER_TYPE.NUMBER;
     }
 }
Beispiel #3
0
 public CodeMember(CodeObject member, CodeObject parent)
 {
     this.MemberObject = member;
     this.Parent       = parent;
     this.Type         = MEMBER_TYPE.OBJECT;
 }
Beispiel #4
0
 public CodeMember(object value, CodeObject parent)
 {
     this.Parent      = parent;
     this.MemberValue = value;
     this.Type        = MEMBER_TYPE.VALUE;
 }
Beispiel #5
0
 public CodeMember(string name, CodeObject parent)
 {
     this.Parent       = parent;
     this.MemberString = name;
     this.Type         = MEMBER_TYPE.STRING;
 }
 public CodeMember(CodeObject member, CodeObject parent)
 {
     this.MemberObject = member;
     this.Parent = parent;
     this.Type = MEMBER_TYPE.OBJECT;
 }
 public CodeMember(object value, CodeObject parent)
 {
     this.Parent = parent;
     this.MemberValue = value;
     this.Type = MEMBER_TYPE.VALUE;
 }