public class JavaScriptCodeParser extends AbstractCompletionParser
LINE_DELIMITER
Constructor and Description |
---|
JavaScriptCodeParser() |
Modifier and Type | Method and Description |
---|---|
ICompletionContext |
getContext(IScriptEngine scriptEngine,
Object resource,
String contents,
int position,
int selectionRange)
Parse the given piece of code into a language specific
ICompletionContext . |
findInvocations, getParameters
createHeader, parse
public ICompletionContext getContext(IScriptEngine scriptEngine, Object resource, String contents, int position, int selectionRange)
ICodeParser
ICompletionContext
.getContext
in interface ICodeParser
getContext
in class AbstractCodeParser
scriptEngine
- running script engineresource
- resource instance to be parsedcontents
- code to be parsed (only up to cursor position)position
- cursor position within contentsselectionRange
- amount of selected characters from cursor positionICompletionContext
with parsed information if successful, null
in case invalid syntax given.