public class JsPositionMarker extends JsStatement
Modifier and Type | Class and Description |
---|---|
static class |
JsPositionMarker.Type
Categories of markers that can be placed in a JS AST.
|
Constructor and Description |
---|
JsPositionMarker(SourceInfo sourceInfo,
String name,
JsPositionMarker.Type type) |
Modifier and Type | Method and Description |
---|---|
NodeKind |
getKind() |
String |
getName() |
JsPositionMarker.Type |
getType() |
boolean |
shouldRecordPosition()
Whether statement ranges should be recorded for this statement type.
|
void |
traverse(JsVisitor v,
JsContext ctx)
Causes this object to have the visitor visit itself and its children.
|
unconditionalControlBreak
getSourceInfo, setSourceInfo, toSource, toSource, toString
public JsPositionMarker(SourceInfo sourceInfo, String name, JsPositionMarker.Type type)
public String getName()
public JsPositionMarker.Type getType()
public boolean shouldRecordPosition()
JsStatement
shouldRecordPosition
in class JsStatement
public void traverse(JsVisitor v, JsContext ctx)
JsVisitable
v
- the visitor that should traverse this nodectx
- the context of an existing traversalCopyright © 2018. All rights reserved.