Esempio n. 1
0
        override public object Clone()
        {
            ExceptionHandler clone = new ExceptionHandler();

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._isSynthetic       = _isSynthetic;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }
            if (null != _declaration)
            {
                clone._declaration = _declaration.Clone() as Declaration;
                clone._declaration.InitializeParent(clone);
            }
            if (null != _filterCondition)
            {
                clone._filterCondition = _filterCondition.Clone() as Expression;
                clone._filterCondition.InitializeParent(clone);
            }
            clone._flags = _flags;
            if (null != _block)
            {
                clone._block = _block.Clone() as Block;
                clone._block.InitializeParent(clone);
            }
            return(clone);
        }
        override public object Clone()
        {
            DeclarationStatement clone = (DeclarationStatement)FormatterServices.GetUninitializedObject(typeof(DeclarationStatement));

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }

            if (null != _modifier)
            {
                clone._modifier = _modifier.Clone() as StatementModifier;
                clone._modifier.InitializeParent(clone);
            }
            if (null != _declaration)
            {
                clone._declaration = _declaration.Clone() as Declaration;
                clone._declaration.InitializeParent(clone);
            }
            if (null != _initializer)
            {
                clone._initializer = _initializer.Clone() as Expression;
                clone._initializer.InitializeParent(clone);
            }
            return(clone);
        }
        override public object Clone()
        {
            FromClauseExpression clone = new FromClauseExpression();

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._isSynthetic       = _isSynthetic;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }
            clone._expressionType = _expressionType;
            clone._tupleSize      = _tupleSize;
            if (null != _identifier)
            {
                clone._identifier = _identifier.Clone() as Declaration;
                clone._identifier.InitializeParent(clone);
            }
            clone._declaredType = _declaredType;
            if (null != _container)
            {
                clone._container = _container.Clone() as Expression;
                clone._container.InitializeParent(clone);
            }
            return(clone);
        }
Esempio n. 4
0
        override public object Clone()
        {
            ExceptionHandler clone = (ExceptionHandler)FormatterServices.GetUninitializedObject(typeof(ExceptionHandler));

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }

            if (null != _declaration)
            {
                clone._declaration = _declaration.Clone() as Declaration;
                clone._declaration.InitializeParent(clone);
            }
            if (null != _filterCondition)
            {
                clone._filterCondition = _filterCondition.Clone() as Expression;
                clone._filterCondition.InitializeParent(clone);
            }
            clone._flags = _flags;
            if (null != _block)
            {
                clone._block = _block.Clone() as Block;
                clone._block.InitializeParent(clone);
            }
            return(clone);
        }
        override public object Clone()
        {
            DeclarationStatement clone = new DeclarationStatement();

            clone._lexicalInfo       = _lexicalInfo;
            clone._endSourceLocation = _endSourceLocation;
            clone._documentation     = _documentation;
            clone._isSynthetic       = _isSynthetic;
            clone._entity            = _entity;
            if (_annotations != null)
            {
                clone._annotations = (Hashtable)_annotations.Clone();
            }
            if (null != _modifier)
            {
                clone._modifier = _modifier.Clone() as StatementModifier;
                clone._modifier.InitializeParent(clone);
            }
            if (null != _declaration)
            {
                clone._declaration = _declaration.Clone() as Declaration;
                clone._declaration.InitializeParent(clone);
            }
            if (null != _initializer)
            {
                clone._initializer = _initializer.Clone() as Expression;
                clone._initializer.InitializeParent(clone);
            }
            return(clone);
        }