Debian Codegraph @

rhino/src/org/mozilla/javascript/ast/EmptyExpression.java

raw symbols SCIP
1 /* -*- Mode: java; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2 *
3 * This Source Code Form is subject to the terms of the Mozilla Public
4 * License, v. 2.0. If a copy of the MPL was not distributed with this
5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 package org.mozilla.javascript.ast;
8
9 import org.mozilla.javascript.Token;
10
11 /**
12 * AST node for an empty expression. Node type is {@link Token#EMPTY}.<p>
13 *
14 * To create an empty statement, wrap it with an {@link ExpressionStatement}.
15 */
16 public class EmptyExpression extends AstNode {
17
18 {
19 type = Token.EMPTY;
20 }
21
22 public EmptyExpression() {
23 }
24
25 public EmptyExpression(int pos) {
26 super(pos);
27 }
28
29 public EmptyExpression(int pos, int len) {
30 super(pos, len);
31 }
32
33 @Override
34 public String toSource(int depth) {
35 return makeIndent(depth);
36 }
37
38 /**
39 * Visits this node. There are no children.
40 */
41 @Override
42 public void visit(NodeVisitor v) {
43 v.visit(this);
44 }
45 }