public static MethodInvocationExpression CreateMethodInvocationExpression(LexicalInfo li, Expression target, Expression arg) { MethodInvocationExpression mie = new MethodInvocationExpression(li); mie.Target = (Expression)target.Clone(); mie.Arguments.Add((Expression)arg.Clone()); mie.IsSynthetic = true; return mie; }
override public object Clone() { ForStatement clone = (ForStatement)FormatterServices.GetUninitializedObject(typeof(ForStatement)); 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 != _declarations) { clone._declarations = _declarations.Clone() as DeclarationCollection; clone._declarations.InitializeParent(clone); } if (null != _iterator) { clone._iterator = _iterator.Clone() as Expression; clone._iterator.InitializeParent(clone); } if (null != _block) { clone._block = _block.Clone() as Block; clone._block.InitializeParent(clone); } if (null != _orBlock) { clone._orBlock = _orBlock.Clone() as Block; clone._orBlock.InitializeParent(clone); } if (null != _thenBlock) { clone._thenBlock = _thenBlock.Clone() as Block; clone._thenBlock.InitializeParent(clone); } return(clone); }
override public object Clone() { JoinClauseExpression clone = new JoinClauseExpression(); 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); } if (null != _left) { clone._left = _left.Clone() as Expression; clone._left.InitializeParent(clone); } if (null != _right) { clone._right = _right.Clone() as Expression; clone._right.InitializeParent(clone); } if (null != _into) { clone._into = _into.Clone() as ReferenceExpression; clone._into.InitializeParent(clone); } return(clone); }
override public object Clone() { SpliceExpression clone = (SpliceExpression)FormatterServices.GetUninitializedObject(typeof(SpliceExpression)); 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 != _expression) { clone._expression = _expression.Clone() as Expression; clone._expression.InitializeParent(clone); } return(clone); }
override public object Clone() { SpliceTypeReference clone = new SpliceTypeReference(); clone._lexicalInfo = _lexicalInfo; clone._endSourceLocation = _endSourceLocation; clone._documentation = _documentation; clone._isSynthetic = _isSynthetic; clone._entity = _entity; if (_annotations != null) { clone._annotations = (Hashtable)_annotations.Clone(); } clone._isPointer = _isPointer; if (null != _expression) { clone._expression = _expression.Clone() as Expression; clone._expression.InitializeParent(clone); } return(clone); }
override public object Clone() { AwaitExpression clone = new AwaitExpression(); 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 != _baseExpression) { clone._baseExpression = _baseExpression.Clone() as Expression; clone._baseExpression.InitializeParent(clone); } return(clone); }
override public object Clone() { StatementModifier clone = new StatementModifier(); clone._lexicalInfo = _lexicalInfo; clone._endSourceLocation = _endSourceLocation; clone._documentation = _documentation; clone._isSynthetic = _isSynthetic; clone._entity = _entity; if (_annotations != null) { clone._annotations = (Hashtable)_annotations.Clone(); } clone._type = _type; if (null != _condition) { clone._condition = _condition.Clone() as Expression; clone._condition.InitializeParent(clone); } return(clone); }
override public object Clone() { WhereClauseExpression clone = new WhereClauseExpression(); 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 != _cond) { clone._cond = _cond.Clone() as Expression; clone._cond.InitializeParent(clone); } return(clone); }
override public object Clone() { MemberReferenceExpression clone = new MemberReferenceExpression(); 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._name = _name; if (null != _target) { clone._target = _target.Clone() as Expression; clone._target.InitializeParent(clone); } return(clone); }
override public object Clone() { UnaryExpression clone = new UnaryExpression(); 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._operator = _operator; if (null != _operand) { clone._operand = _operand.Clone() as Expression; clone._operand.InitializeParent(clone); } return(clone); }
override public object Clone() { SpliceParameterDeclaration clone = (SpliceParameterDeclaration)FormatterServices.GetUninitializedObject(typeof(SpliceParameterDeclaration)); 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 != _type) { clone._type = _type.Clone() as TypeReference; clone._type.InitializeParent(clone); } clone._modifiers = _modifiers; if (null != _attributes) { clone._attributes = _attributes.Clone() as AttributeCollection; clone._attributes.InitializeParent(clone); } if (null != _parameterDeclaration) { clone._parameterDeclaration = _parameterDeclaration.Clone() as ParameterDeclaration; clone._parameterDeclaration.InitializeParent(clone); } if (null != _nameExpression) { clone._nameExpression = _nameExpression.Clone() as Expression; clone._nameExpression.InitializeParent(clone); } return(clone); }
override public object Clone() { GeneratorExpression clone = (GeneratorExpression)FormatterServices.GetUninitializedObject(typeof(GeneratorExpression)); 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 != _expression) { clone._expression = _expression.Clone() as Expression; clone._expression.InitializeParent(clone); } if (null != _declarations) { clone._declarations = _declarations.Clone() as DeclarationCollection; clone._declarations.InitializeParent(clone); } if (null != _iterator) { clone._iterator = _iterator.Clone() as Expression; clone._iterator.InitializeParent(clone); } if (null != _filter) { clone._filter = _filter.Clone() as StatementModifier; clone._filter.InitializeParent(clone); } return(clone); }