override public object Clone() { MacroStatement clone = (MacroStatement)FormatterServices.GetUninitializedObject(typeof(MacroStatement)); 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); } clone._name = _name; if (null != _arguments) { clone._arguments = _arguments.Clone() as ExpressionCollection; clone._arguments.InitializeParent(clone); } if (null != _body) { clone._body = _body.Clone() as Block; clone._body.InitializeParent(clone); } return(clone); }
override public object Clone() { MethodInvocationExpression clone = (MethodInvocationExpression)FormatterServices.GetUninitializedObject(typeof(MethodInvocationExpression)); clone._lexicalInfo = _lexicalInfo; clone._endSourceLocation = _endSourceLocation; clone._documentation = _documentation; clone._entity = _entity; if (_annotations != null) { clone._annotations = (Hashtable)_annotations.Clone(); } clone._expressionType = _expressionType; if (null != _target) { clone._target = _target.Clone() as Expression; clone._target.InitializeParent(clone); } if (null != _arguments) { clone._arguments = _arguments.Clone() as ExpressionCollection; clone._arguments.InitializeParent(clone); } if (null != _namedArguments) { clone._namedArguments = _namedArguments.Clone() as ExpressionPairCollection; clone._namedArguments.InitializeParent(clone); } return(clone); }
override public object Clone() { Attribute clone = (Attribute)FormatterServices.GetUninitializedObject(typeof(Attribute)); clone._lexicalInfo = _lexicalInfo; clone._endSourceLocation = _endSourceLocation; clone._documentation = _documentation; clone._isSynthetic = _isSynthetic; clone._entity = _entity; if (_annotations != null) { clone._annotations = (Hashtable)_annotations.Clone(); } clone._name = _name; if (null != _arguments) { clone._arguments = _arguments.Clone() as ExpressionCollection; clone._arguments.InitializeParent(clone); } if (null != _namedArguments) { clone._namedArguments = _namedArguments.Clone() as ExpressionPairCollection; clone._namedArguments.InitializeParent(clone); } return(clone); }
override public object Clone() { MethodInvocationExpression clone = new MethodInvocationExpression(); 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; if (null != _target) { clone._target = _target.Clone() as Expression; clone._target.InitializeParent(clone); } if (null != _arguments) { clone._arguments = _arguments.Clone() as ExpressionCollection; clone._arguments.InitializeParent(clone); } if (null != _namedArguments) { clone._namedArguments = _namedArguments.Clone() as ExpressionPairCollection; clone._namedArguments.InitializeParent(clone); } return(clone); }
override public object Clone() { QueryExpression clone = new QueryExpression(); 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; if (null != _clauses) { clone._clauses = _clauses.Clone() as ExpressionCollection; clone._clauses.InitializeParent(clone); } if (null != _ending) { clone._ending = _ending.Clone() as QueryEndingExpression; clone._ending.InitializeParent(clone); } if (null != _cont) { clone._cont = _cont.Clone() as QueryContinuationExpression; clone._cont.InitializeParent(clone); } return(clone); }
override public object Clone() { ListLiteralExpression clone = new ListLiteralExpression(); 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; if (null != _items) { clone._items = _items.Clone() as ExpressionCollection; clone._items.InitializeParent(clone); } return(clone); }
override public object Clone() { ExpressionInterpolationExpression clone = (ExpressionInterpolationExpression)FormatterServices.GetUninitializedObject(typeof(ExpressionInterpolationExpression)); clone._lexicalInfo = _lexicalInfo; clone._endSourceLocation = _endSourceLocation; clone._documentation = _documentation; clone._entity = _entity; if (_annotations != null) { clone._annotations = (Hashtable)_annotations.Clone(); } clone._expressionType = _expressionType; if (null != _expressions) { clone._expressions = _expressions.Clone() as ExpressionCollection; clone._expressions.InitializeParent(clone); } return(clone); }