/*
 *  Licensed to the Apache Software Foundation (ASF) under one
 *  or more contributor license agreements.  See the NOTICE file
 *  distributed with this work for additional information
 *  regarding copyright ownership.  The ASF licenses this file
 *  to you under the Apache License, Version 2.0 (the
 *  "License"); you may not use this file except in compliance
 *  with the License.  You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 *  Unless required by applicable law or agreed to in writing,
 *  software distributed under the License is distributed on an
 *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 *  KIND, either express or implied.  See the License for the
 *  specific language governing permissions and limitations
 *  under the License.
 */
package org.codehaus.groovy.ast.stmt;

import org.codehaus.groovy.ast.GroovyCodeVisitor;

/**
 * Represents an empty statement
 * 
 * @author <a href="mailto:james@coredevelopers.net">James Strachan</a>
 */
public class EmptyStatement extends Statement {

    public static final EmptyStatement INSTANCE = new EmptyStatement();
    
    public void visit(GroovyCodeVisitor visitor) {
    }

    public boolean isEmpty() {
        return true;
    }

}

@@ -885,33 +885,148 @@
 ovy.ast.
-GroovyCodeVisitor
+ASTNode;%0Aimport org.codehaus.groovy.ast.GroovyCodeVisitor;%0Aimport org.codehaus.groovy.ast.NodeMetaDataHandler;%0A%0Aimport java.util.Map
 ;%0A%0A/**%0A 
@@ -1186,16 +1186,16 @@
 ment %7B%0A%0A
-
     publ
@@ -1256,16 +1256,1949 @@
 tement()
+ %7B%0A        @Override%0A        public void setStatementLabel(String label) %7B%0A            throw createUnsupportedOperationException();%0A        %7D%0A%0A        @Override%0A        public void addStatementLabel(String label) %7B%0A            throw createUnsupportedOperationException();%0A        %7D%0A%0A        @Override%0A        public void setLineNumber(int lineNumber) %7B%0A            throw createUnsupportedOperationException();%0A        %7D%0A%0A        @Override%0A        public void setColumnNumber(int columnNumber) %7B%0A            throw createUnsupportedOperationException();%0A        %7D%0A%0A        @Override%0A        public void setLastLineNumber(int lastLineNumber) %7B%0A            throw createUnsupportedOperationException();%0A        %7D%0A%0A        @Override%0A        public void setLastColumnNumber(int lastColumnNumber) %7B%0A            throw createUnsupportedOperationException();%0A        %7D%0A%0A        @Override%0A        public void setSourcePosition(ASTNode node) %7B%0A            throw createUnsupportedOperationException();%0A        %7D%0A%0A        @Override%0A        public void copyNodeMetaData(NodeMetaDataHandler other) %7B%0A            throw createUnsupportedOperationException();%0A        %7D%0A%0A        @Override%0A        public void setNodeMetaData(Object key, Object value) %7B%0A            throw createUnsupportedOperationException();%0A        %7D%0A%0A        @Override%0A        public Object putNodeMetaData(Object key, Object value) %7B%0A            throw createUnsupportedOperationException();%0A        %7D%0A%0A        @Override%0A        public void removeNodeMetaData(Object key) %7B%0A            throw createUnsupportedOperationException();%0A        %7D%0A%0A        @Override%0A        public void setMetaDataMap(Map%3C?, ?%3E metaDataMap) %7B%0A            throw createUnsupportedOperationException();%0A        %7D%0A%0A        private UnsupportedOperationException createUnsupportedOperationException() %7B%0A            return new UnsupportedOperationException(%22EmptyStatement.INSTANCE is immutable%22);%0A        %7D%0A    %7D
 ;%0A    %0A 

Make EmptyStatement.INSTANCE immutable