public class EcmaScriptSideKickParser
extends sidekick.SideKickParser
implements sidekick.enhanced.PartialParser
Modifier and Type | Field and Description |
---|---|
static boolean |
showAll |
Constructor and Description |
---|
EcmaScriptSideKickParser() |
Modifier and Type | Method and Description |
---|---|
void |
parse() |
sidekick.SideKickParsedData |
parse(org.gjt.sp.jedit.Buffer buffer,
errorlist.DefaultErrorSource errorSource)
Parse the contents of the given buffer.
|
sidekick.SideKickParsedData |
parse(org.gjt.sp.jedit.Buffer buffer,
java.lang.String text,
errorlist.DefaultErrorSource errorSource)
Parse the contents of the given text.
|
void |
setStartLine(int offset)
If called by another parser to parse part of a file (for example, to parse
a script tag in an html document), this can be set to the offset of the
script tag so that the node locations can be set correctly.
|
public void setStartLine(int offset)
setStartLine
in interface sidekick.enhanced.PartialParser
public void parse()
public sidekick.SideKickParsedData parse(org.gjt.sp.jedit.Buffer buffer, errorlist.DefaultErrorSource errorSource)
parse
in class sidekick.SideKickParser
buffer
- the buffer to parseerrorSource
- where to send errorspublic sidekick.SideKickParsedData parse(org.gjt.sp.jedit.Buffer buffer, java.lang.String text, errorlist.DefaultErrorSource errorSource)
setLineOffset
should be called prior to calling this method, otherwise, tree node positions
may be off.parse
in interface sidekick.enhanced.PartialParser
buffer
- the buffer to parseerrorSource
- where to send errors