Exemplo n.º 1
0
        // Body (ClassBody) [class_body] ClassMemberDeclarations
        //  method_declaration
        //  property_declaration

        //  constructor_declaration

        //  field_declaration
        //  constant_declaration
        //  event_declaration
        //  indexer_declaration
        //  operator_declaration
        //  destructor_declaration
        //  static_constructor_declaration
        //  type_declaration

        // Body (InterfaceBody) [interface_body] InterfaceMemberDeclarations
        //  interface_method_declaration
        //  interface_property_declaration

        //  interface_event_declaration
        //  interface_indexer_declaration

        public ClassInterfaceDeclaration CopyHeader()
        {
            return(new ClassInterfaceDeclaration()
            {
                IsInterface = IsInterface.Copy(),
                Attributes = Attributes?.Copy(),
                Modifiers = Modifiers?.Copy(),
                Identifier = Identifier?.Copy(),
                TypeParameters = TypeParameters?.Copy(),
                Base = Base?.Copy()
            });
        }
 public override SyntaxNode Copy()
 {
     return(new FunctionOrDistributionNode((IdentifierNode)Identifier.Copy(), Expression.Copy()));
 }