override public object Clone() { ParameterDeclaration clone = new ParameterDeclaration(); 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); } return(clone); }
override public object Clone() { Module clone = (Module)FormatterServices.GetUninitializedObject(typeof(Module)); clone._lexicalInfo = _lexicalInfo; clone._endSourceLocation = _endSourceLocation; clone._documentation = _documentation; clone._isSynthetic = _isSynthetic; clone._entity = _entity; if (_annotations != null) { clone._annotations = (Hashtable)_annotations.Clone(); } clone._modifiers = _modifiers; clone._name = _name; if (null != _attributes) { clone._attributes = _attributes.Clone() as AttributeCollection; clone._attributes.InitializeParent(clone); } if (null != _members) { clone._members = _members.Clone() as TypeMemberCollection; clone._members.InitializeParent(clone); } if (null != _baseTypes) { clone._baseTypes = _baseTypes.Clone() as TypeReferenceCollection; clone._baseTypes.InitializeParent(clone); } if (null != _genericParameters) { clone._genericParameters = _genericParameters.Clone() as GenericParameterDeclarationCollection; clone._genericParameters.InitializeParent(clone); } if (null != _namespace) { clone._namespace = _namespace.Clone() as NamespaceDeclaration; clone._namespace.InitializeParent(clone); } if (null != _imports) { clone._imports = _imports.Clone() as ImportCollection; clone._imports.InitializeParent(clone); } if (null != _globals) { clone._globals = _globals.Clone() as Block; clone._globals.InitializeParent(clone); } if (null != _assemblyAttributes) { clone._assemblyAttributes = _assemblyAttributes.Clone() as AttributeCollection; clone._assemblyAttributes.InitializeParent(clone); } return(clone); }
override public object Clone() { CallableDefinition clone = (CallableDefinition)FormatterServices.GetUninitializedObject(typeof(CallableDefinition)); clone._lexicalInfo = _lexicalInfo; clone._endSourceLocation = _endSourceLocation; clone._documentation = _documentation; clone._isSynthetic = _isSynthetic; clone._entity = _entity; if (_annotations != null) { clone._annotations = (Hashtable)_annotations.Clone(); } clone._modifiers = _modifiers; clone._name = _name; if (null != _attributes) { clone._attributes = _attributes.Clone() as AttributeCollection; clone._attributes.InitializeParent(clone); } if (null != _parameters) { clone._parameters = _parameters.Clone() as ParameterDeclarationCollection; clone._parameters.InitializeParent(clone); } if (null != _genericParameters) { clone._genericParameters = _genericParameters.Clone() as GenericParameterDeclarationCollection; clone._genericParameters.InitializeParent(clone); } if (null != _returnType) { clone._returnType = _returnType.Clone() as TypeReference; clone._returnType.InitializeParent(clone); } if (null != _returnTypeAttributes) { clone._returnTypeAttributes = _returnTypeAttributes.Clone() as AttributeCollection; clone._returnTypeAttributes.InitializeParent(clone); } return(clone); }
override public object Clone() { TypeMember clone = (TypeMember)FormatterServices.GetUninitializedObject(typeof(TypeMember)); clone._lexicalInfo = _lexicalInfo; clone._endSourceLocation = _endSourceLocation; clone._documentation = _documentation; clone._entity = _entity; if (_annotations != null) { clone._annotations = (Hashtable)_annotations.Clone(); } clone._modifiers = _modifiers; clone._name = _name; if (null != _attributes) { clone._attributes = _attributes.Clone() as AttributeCollection; clone._attributes.InitializeParent(clone); } return(clone); }