001    // Copyright (c) 2011, the Dart project authors.  Please see the AUTHORS file
002    // for details. All rights reserved. Use of this source code is governed by a
003    // BSD-style license that can be found in the LICENSE file.
004    
005    package com.google.dart.compiler.backend.js.ast;
006    
007    import com.intellij.util.SmartList;
008    
009    import java.util.List;
010    
011    /**
012     * A member/case in a JavaScript switch object.
013     */
014    public abstract class JsSwitchMember extends SourceInfoAwareJsNode {
015        protected final List<JsStatement> statements = new SmartList<JsStatement>();
016    
017        protected JsSwitchMember() {
018            super();
019        }
020    
021        public List<JsStatement> getStatements() {
022            return statements;
023        }
024    
025        @Override
026        public void acceptChildren(JsVisitor visitor) {
027            visitor.acceptWithInsertRemove(statements);
028        }
029    }