Example #1
0
 public ASimpleInvokeExp(
         TIdentifier _name_,
         IList _args_
 )
 {
     SetName(_name_);
     this._args_ = new TypedList(new Args_Cast(this));
     this._args_.Clear();
     this._args_.AddAll(_args_);
 }
Example #2
0
 internal override void RemoveChild(Node child)
 {
     if (_name_ == child)
     {
         _name_ = null;
         return;
     }
 }
Example #3
0
 public AALocalDeclRight(
         TIdentifier _name_,
         PAssignop _assignop_,
         PExp _init_
 )
 {
     SetName(_name_);
     SetAssignop(_assignop_);
     SetInit(_init_);
 }
Example #4
0
 public AEnumDecl(
         PVisibilityModifier _visibility_modifier_,
         TStatic _static_,
         TEnum _token_,
         TIdentifier _name_,
         IList _values_,
         TRBrace _end_token_
 )
 {
     SetVisibilityModifier(_visibility_modifier_);
     SetStatic(_static_);
     SetToken(_token_);
     SetName(_name_);
     this._values_ = new TypedList(new Values_Cast(this));
     this._values_.Clear();
     this._values_.AddAll(_values_);
     SetEndToken(_end_token_);
 }
Example #5
0
 public AFieldDecl(
         PVisibilityModifier _visibility_modifier_,
         TStatic _static_,
         TConst _const_,
         PType _type_,
         TIdentifier _name_,
         PExp _init_
 )
 {
     SetVisibilityModifier(_visibility_modifier_);
     SetStatic(_static_);
     SetConst(_const_);
     SetType(_type_);
     SetName(_name_);
     SetInit(_init_);
 }
Example #6
0
 public AALocalDecl(
         PVisibilityModifier _visibility_modifier_,
         TStatic _static_,
         TRef _ref_,
         TOut _out_,
         TConst _const_,
         PType _type_,
         TIdentifier _name_,
         PExp _init_
 )
 {
     SetVisibilityModifier(_visibility_modifier_);
     SetStatic(_static_);
     SetRef(_ref_);
     SetOut(_out_);
     SetConst(_const_);
     SetType(_type_);
     SetName(_name_);
     SetInit(_init_);
 }
Example #7
0
        public void SetToken(TIdentifier node)
        {
            if (_token_ != null)
            {
                _token_.Parent(null);
            }

            if (node != null)
            {
                if (node.Parent() != null)
                {
                    node.Parent().RemoveChild(node);
                }

                node.Parent(this);
            }

            _token_ = node;
        }
Example #8
0
 public AThisArrayPropertyDecl(
         PVisibilityModifier _visibility_modifier_,
         PType _type_,
         TThis _token_,
         PType _arg_type_,
         TIdentifier _arg_name_,
         PBlock _getter_,
         PBlock _setter_
 )
 {
     SetVisibilityModifier(_visibility_modifier_);
     SetType(_type_);
     SetToken(_token_);
     SetArgType(_arg_type_);
     SetArgName(_arg_name_);
     SetGetter(_getter_);
     SetSetter(_setter_);
 }
Example #9
0
 internal override void RemoveChild(Node child)
 {
     if (_visibility_modifier_ == child)
     {
         _visibility_modifier_ = null;
         return;
     }
     if (_type_ == child)
     {
         _type_ = null;
         return;
     }
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_arg_type_ == child)
     {
         _arg_type_ = null;
         return;
     }
     if (_arg_name_ == child)
     {
         _arg_name_ = null;
         return;
     }
     if (_getter_ == child)
     {
         _getter_ = null;
         return;
     }
     if (_setter_ == child)
     {
         _setter_ = null;
         return;
     }
 }
Example #10
0
 internal override void RemoveChild(Node child)
 {
     if (_receiver_ == child)
     {
         _receiver_ = null;
         return;
     }
     if (_dot_type_ == child)
     {
         _dot_type_ = null;
         return;
     }
     if (_name_ == child)
     {
         _name_ = null;
         return;
     }
 }
Example #11
0
 public AArrayResizeExp(
         TIdentifier _token_,
         PExp _base_,
         PExp _arg_
 )
 {
     SetToken(_token_);
     SetBase(_base_);
     SetArg(_arg_);
 }
Example #12
0
 public AStructLvalue(
         PExp _receiver_,
         PDotType _dot_type_,
         TIdentifier _name_
 )
 {
     SetReceiver(_receiver_);
     SetDotType(_dot_type_);
     SetName(_name_);
 }
Example #13
0
 internal override void RemoveChild(Node child)
 {
     if (_visibility_modifier_ == child)
     {
         _visibility_modifier_ = null;
         return;
     }
     if (_class_token_ == child)
     {
         _class_token_ = null;
         return;
     }
     if (_dimention_ == child)
     {
         _dimention_ = null;
         return;
     }
     if (_int_dim_ == child)
     {
         _int_dim_ = null;
         return;
     }
     if (_end_token_ == child)
     {
         _end_token_ = null;
         return;
     }
     if (_name_ == child)
     {
         _name_ = null;
         return;
     }
     if (_generic_vars_.Contains(child))
     {
         _generic_vars_.Remove(child);
         return;
     }
     if (_base_ == child)
     {
         _base_ = null;
         return;
     }
     if (_locals_.Contains(child))
     {
         _locals_.Remove(child);
         return;
     }
 }
Example #14
0
 public AStructDecl(
         PVisibilityModifier _visibility_modifier_,
         TClassToken _class_token_,
         PExp _dimention_,
         TIntegerLiteral _int_dim_,
         TRBrace _end_token_,
         TIdentifier _name_,
         IList _generic_vars_,
         PType _base_,
         IList _locals_
 )
 {
     SetVisibilityModifier(_visibility_modifier_);
     SetClassToken(_class_token_);
     SetDimention(_dimention_);
     SetIntDim(_int_dim_);
     SetEndToken(_end_token_);
     SetName(_name_);
     this._generic_vars_ = new TypedList(new GenericVars_Cast(this));
     this._generic_vars_.Clear();
     this._generic_vars_.AddAll(_generic_vars_);
     SetBase(_base_);
     this._locals_ = new TypedList(new Locals_Cast(this));
     this._locals_.Clear();
     this._locals_.AddAll(_locals_);
 }
Example #15
0
 public ADeconstructorDecl(
         PVisibilityModifier _visibility_modifier_,
         TIdentifier _name_,
         IList _formals_,
         PBlock _block_
 )
 {
     SetVisibilityModifier(_visibility_modifier_);
     SetName(_name_);
     this._formals_ = new TypedList(new Formals_Cast(this));
     this._formals_.Clear();
     this._formals_.AddAll(_formals_);
     SetBlock(_block_);
 }
Example #16
0
 public ATriggerDecl(
         PVisibilityModifier _visibility_modifier_,
         TIdentifier _name_,
         TEvents _event_token_,
         PBlock _events_,
         TConditions _conditions_token_,
         PBlock _conditions_,
         TActions _actions_token_,
         PBlock _actions_
 )
 {
     SetVisibilityModifier(_visibility_modifier_);
     SetName(_name_);
     SetEventToken(_event_token_);
     SetEvents(_events_);
     SetConditionsToken(_conditions_token_);
     SetConditions(_conditions_);
     SetActionsToken(_actions_token_);
     SetActions(_actions_);
 }
Example #17
0
 internal override void RemoveChild(Node child)
 {
     if (_visibility_modifier_ == child)
     {
         _visibility_modifier_ = null;
         return;
     }
     if (_name_ == child)
     {
         _name_ = null;
         return;
     }
     if (_formals_.Contains(child))
     {
         _formals_.Remove(child);
         return;
     }
     if (_block_ == child)
     {
         _block_ = null;
         return;
     }
 }
Example #18
0
 internal override void RemoveChild(Node child)
 {
     if (_visibility_modifier_ == child)
     {
         _visibility_modifier_ = null;
         return;
     }
     if (_name_ == child)
     {
         _name_ = null;
         return;
     }
     if (_event_token_ == child)
     {
         _event_token_ = null;
         return;
     }
     if (_events_ == child)
     {
         _events_ = null;
         return;
     }
     if (_conditions_token_ == child)
     {
         _conditions_token_ = null;
         return;
     }
     if (_conditions_ == child)
     {
         _conditions_ = null;
         return;
     }
     if (_actions_token_ == child)
     {
         _actions_token_ = null;
         return;
     }
     if (_actions_ == child)
     {
         _actions_ = null;
         return;
     }
 }
Example #19
0
 public ADelegateInvokeExp(
         TIdentifier _token_,
         PExp _receiver_,
         IList _args_
 )
 {
     SetToken(_token_);
     SetReceiver(_receiver_);
     this._args_ = new TypedList(new Args_Cast(this));
     this._args_.Clear();
     this._args_.AddAll(_args_);
 }
Example #20
0
 internal override void RemoveChild(Node child)
 {
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_base_ == child)
     {
         _base_ = null;
         return;
     }
     if (_arg_ == child)
     {
         _arg_ = null;
         return;
     }
 }
Example #21
0
 internal override void RemoveChild(Node child)
 {
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_receiver_ == child)
     {
         _receiver_ = null;
         return;
     }
     if (_args_.Contains(child))
     {
         _args_.Remove(child);
         return;
     }
 }
Example #22
0
 public ATypeLvalue(
         TIdentifier _name_
 )
 {
     SetName(_name_);
 }
Example #23
0
 internal override void RemoveChild(Node child)
 {
     if (_visibility_modifier_ == child)
     {
         _visibility_modifier_ = null;
         return;
     }
     if (_static_ == child)
     {
         _static_ = null;
         return;
     }
     if (_token_ == child)
     {
         _token_ = null;
         return;
     }
     if (_name_ == child)
     {
         _name_ = null;
         return;
     }
     if (_values_.Contains(child))
     {
         _values_.Remove(child);
         return;
     }
     if (_end_token_ == child)
     {
         _end_token_ = null;
         return;
     }
 }
Example #24
0
 public AASourceFile(
         IList _decl_,
         TIdentifier _name_,
         IList _usings_
 )
 {
     this._decl_ = new TypedList(new Decl_Cast(this));
     this._decl_.Clear();
     this._decl_.AddAll(_decl_);
     SetName(_name_);
     this._usings_ = new TypedList(new Usings_Cast(this));
     this._usings_.Clear();
     this._usings_.AddAll(_usings_);
 }
Example #25
0
 public AFieldLvalue(
         TIdentifier _name_
 )
 {
     SetName(_name_);
 }
Example #26
0
 internal override void RemoveChild(Node child)
 {
     if (_decl_.Contains(child))
     {
         _decl_.Remove(child);
         return;
     }
     if (_name_ == child)
     {
         _name_ = null;
         return;
     }
     if (_usings_.Contains(child))
     {
         _usings_.Remove(child);
         return;
     }
 }
Example #27
0
 internal override void RemoveChild(Node child)
 {
     if (_visibility_modifier_ == child)
     {
         _visibility_modifier_ = null;
         return;
     }
     if (_static_ == child)
     {
         _static_ = null;
         return;
     }
     if (_ref_ == child)
     {
         _ref_ = null;
         return;
     }
     if (_out_ == child)
     {
         _out_ = null;
         return;
     }
     if (_const_ == child)
     {
         _const_ = null;
         return;
     }
     if (_type_ == child)
     {
         _type_ = null;
         return;
     }
     if (_name_ == child)
     {
         _name_ = null;
         return;
     }
     if (_init_ == child)
     {
         _init_ = null;
         return;
     }
 }
Example #28
0
 public AAEnumLocal(
         TIdentifier _name_,
         PExp _value_
 )
 {
     SetName(_name_);
     SetValue(_value_);
 }
Example #29
0
        public void SetName(TIdentifier node)
        {
            if (_name_ != null)
            {
                _name_.Parent(null);
            }

            if (node != null)
            {
                if (node.Parent() != null)
                {
                    node.Parent().RemoveChild(node);
                }

                node.Parent(this);
            }

            _name_ = node;
        }
Example #30
0
 public APropertyLvalue(
         TIdentifier _name_
 )
 {
     SetName(_name_);
 }