コード例 #1
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
        public void SetB(TNewline node)
        {
            if(_b_ != null)
            {
            _b_.Parent(null);
            }

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

            node.Parent(this);
            }

            _b_ = node;
        }
コード例 #2
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
 internal override void RemoveChild(Node child)
 {
     if ( _tabblockinside_ == child )
     {
     _tabblockinside_ = null;
     return;
     }
     if ( _newline_ == child )
     {
     _newline_ = null;
     return;
     }
     if ( _expression_ == child )
     {
     _expression_ = null;
     return;
     }
 }
コード例 #3
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
     public ADocument(
         TNewline _a_,
         IList _import_,
         IList _scopealteration_,
         PDocumentinside _documentinside_,
         TNewline _b_
 )
     {
         SetA (_a_);
         this._import_ = new TypedList(new Import_Cast(this));
         this._import_.Clear();
         this._import_.AddAll(_import_);
         this._scopealteration_ = new TypedList(new Scopealteration_Cast(this));
         this._scopealteration_.Clear();
         this._scopealteration_.AddAll(_scopealteration_);
         SetDocumentinside (_documentinside_);
         SetB (_b_);
     }
コード例 #4
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
     public AParenthetical(
         TOperatorOpeningParenthesis _operator_opening_parenthesis_,
         PExpression _expression_,
         TNewline _newline_,
         TOperatorClosingParenthesis _operator_closing_parenthesis_
 )
     {
         SetOperatorOpeningParenthesis (_operator_opening_parenthesis_);
         SetExpression (_expression_);
         SetNewline (_newline_);
         SetOperatorClosingParenthesis (_operator_closing_parenthesis_);
     }
コード例 #5
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
     public ABTabblockinside(
         PTabblockinside _tabblockinside_,
         TNewline _newline_,
         PExpression _expression_
 )
     {
         SetTabblockinside (_tabblockinside_);
         SetNewline (_newline_);
         SetExpression (_expression_);
     }
コード例 #6
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
 internal override void RemoveChild(Node child)
 {
     if ( _keyword_expose_ == child )
     {
     _keyword_expose_ = null;
     return;
     }
     if ( _identifier_ == child )
     {
     _identifier_ = null;
     return;
     }
     if ( _newline_ == child )
     {
     _newline_ = null;
     return;
     }
 }
コード例 #7
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
        public void SetNewline(TNewline node)
        {
            if(_newline_ != null)
            {
            _newline_.Parent(null);
            }

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

            node.Parent(this);
            }

            _newline_ = node;
        }
コード例 #8
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
     public AUsing(
         TKeywordUsing _keyword_using_,
         TIdentifier _identifier_,
         TNewline _newline_
 )
     {
         SetKeywordUsing (_keyword_using_);
         SetIdentifier (_identifier_);
         SetNewline (_newline_);
     }
コード例 #9
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
     public ABDeclarefirstlist(
         PDeclarefirstlist _declarefirstlist_,
         TNewline _newline_,
         PDeclarefirst _declarefirst_
 )
     {
         SetDeclarefirstlist (_declarefirstlist_);
         SetNewline (_newline_);
         SetDeclarefirst (_declarefirst_);
     }
コード例 #10
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
     public ATabblock(
         TNewline _a_,
         TIndentOpen _indent_open_,
         PTabblockinside _tabblockinside_,
         TNewline _b_,
         TIndentClose _indent_close_
 )
     {
         SetA (_a_);
         SetIndentOpen (_indent_open_);
         SetTabblockinside (_tabblockinside_);
         SetB (_b_);
         SetIndentClose (_indent_close_);
     }
コード例 #11
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
 internal override void RemoveChild(Node child)
 {
     if ( _a_ == child )
     {
     _a_ = null;
     return;
     }
     if ( _indent_open_ == child )
     {
     _indent_open_ = null;
     return;
     }
     if ( _tabblockinside_ == child )
     {
     _tabblockinside_ = null;
     return;
     }
     if ( _b_ == child )
     {
     _b_ = null;
     return;
     }
     if ( _indent_close_ == child )
     {
     _indent_close_ = null;
     return;
     }
 }
コード例 #12
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
 internal override void RemoveChild(Node child)
 {
     if ( _keyword_plane_ == child )
     {
     _keyword_plane_ = null;
     return;
     }
     if ( _string_ == child )
     {
     _string_ = null;
     return;
     }
     if ( _newline_ == child )
     {
     _newline_ = null;
     return;
     }
 }
コード例 #13
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
     public APlanereference(
         TKeywordPlane _keyword_plane_,
         TString _string_,
         TNewline _newline_
 )
     {
         SetKeywordPlane (_keyword_plane_);
         SetString (_string_);
         SetNewline (_newline_);
     }
コード例 #14
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
 internal override void RemoveChild(Node child)
 {
     if ( _operator_opening_parenthesis_ == child )
     {
     _operator_opening_parenthesis_ = null;
     return;
     }
     if ( _expression_ == child )
     {
     _expression_ = null;
     return;
     }
     if ( _newline_ == child )
     {
     _newline_ = null;
     return;
     }
     if ( _operator_closing_parenthesis_ == child )
     {
     _operator_closing_parenthesis_ = null;
     return;
     }
 }
コード例 #15
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
 internal override void RemoveChild(Node child)
 {
     if ( _a_ == child )
     {
     _a_ = null;
     return;
     }
     if ( _import_.Contains(child) )
     {
     _import_.Remove(child);
     return;
     }
     if ( _scopealteration_.Contains(child) )
     {
     _scopealteration_.Remove(child);
     return;
     }
     if ( _documentinside_ == child )
     {
     _documentinside_ = null;
     return;
     }
     if ( _b_ == child )
     {
     _b_ = null;
     return;
     }
 }
コード例 #16
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
 internal override void RemoveChild(Node child)
 {
     if ( _declarefirstlist_ == child )
     {
     _declarefirstlist_ = null;
     return;
     }
     if ( _newline_ == child )
     {
     _newline_ = null;
     return;
     }
     if ( _declarefirst_ == child )
     {
     _declarefirst_ = null;
     return;
     }
 }
コード例 #17
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
     public AExpose(
         TKeywordExpose _keyword_expose_,
         TIdentifier _identifier_,
         TNewline _newline_
 )
     {
         SetKeywordExpose (_keyword_expose_);
         SetIdentifier (_identifier_);
         SetNewline (_newline_);
     }
コード例 #18
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
     public ABracetabblock(
         TOperatorOpeningBrace _operator_opening_brace_,
         TNewline _a_,
         PTabblock _tabblock_,
         TNewline _b_,
         TOperatorClosingBrace _operator_closing_brace_
 )
     {
         SetOperatorOpeningBrace (_operator_opening_brace_);
         SetA (_a_);
         SetTabblock (_tabblock_);
         SetB (_b_);
         SetOperatorClosingBrace (_operator_closing_brace_);
     }
コード例 #19
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
     public AImport(
         TKeywordImport _keyword_import_,
         TString _string_,
         TNewline _newline_
 )
     {
         SetKeywordImport (_keyword_import_);
         SetString (_string_);
         SetNewline (_newline_);
     }
コード例 #20
0
ファイル: prods.cs プロジェクト: JamesJustinHarrell/niviok
 internal override void RemoveChild(Node child)
 {
     if ( _operator_opening_brace_ == child )
     {
     _operator_opening_brace_ = null;
     return;
     }
     if ( _a_ == child )
     {
     _a_ = null;
     return;
     }
     if ( _tabblock_ == child )
     {
     _tabblock_ = null;
     return;
     }
     if ( _b_ == child )
     {
     _b_ = null;
     return;
     }
     if ( _operator_closing_brace_ == child )
     {
     _operator_closing_brace_ = null;
     return;
     }
 }
コード例 #21
0
ファイル: analysis.cs プロジェクト: JamesJustinHarrell/niviok
 public virtual void CaseTNewline(TNewline node)
 {
     DefaultCase(node);
 }
コード例 #22
0
ファイル: parser.cs プロジェクト: JamesJustinHarrell/niviok
 public override void CaseTNewline(TNewline node)
 {
     index = 38;
 }