Exemple #1
0
        internal override void MergePartialType(CustomTypeNode partialTypeNode) {
            base.MergePartialType(partialTypeNode);

            if (partialTypeNode._baseTypes.Count > 0) {
                _baseTypes.Append(GetParentedNodeList(partialTypeNode._baseTypes));
            }
        }
Exemple #2
0
        internal virtual void MergePartialType(CustomTypeNode partialTypeNode) {
            Debug.Assert(Name == partialTypeNode.Name);

            if (partialTypeNode._attributes.Count > 0) {
                _attributes.Append(GetParentedNodeList(partialTypeNode._attributes));
            }

            if ((partialTypeNode.Modifiers & Modifiers.PartialModifiers) != 0) {
                _modifiers |= (partialTypeNode.Modifiers & Modifiers.PartialModifiers);
            }

            if (partialTypeNode._typeParameters.Count > 0) {
                _typeParameters.Append(GetParentedNodeList(partialTypeNode._typeParameters));
            }

            if (partialTypeNode._constraintClauses.Count > 0) {
                _constraintClauses.Append(GetParentedNodeList(partialTypeNode._constraintClauses));
            }
        }