| Package | Description |
|---|---|
| com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
| com.google.javascript.jscomp.parsing |
Provides utilities to help with parsing JSDoc annotations and performing AST
transformations.
|
| com.google.javascript.rhino |
The core AST from Rhino.
|
| com.google.javascript.rhino.jstype |
Provides abstractions to represent types in JavaScript.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SourceFile
An abstract representation of a source file that provides access to
language-neutral features.
|
| Modifier and Type | Method and Description |
|---|---|
StaticSourceFile |
Scope.Var.getSourceFile() |
static StaticSourceFile |
NodeUtil.getSourceFile(Node n) |
| Modifier and Type | Method and Description |
|---|---|
static ParserRunner.ParseResult |
ParserRunner.parse(StaticSourceFile sourceFile,
String sourceString,
Config config,
com.google.javascript.rhino.head.ErrorReporter errorReporter,
Logger logger)
Parses the JavaScript text given by a reader.
|
static ParserRunner.ParseResult |
ParserRunner.parseEs5(StaticSourceFile sourceFile,
String sourceString,
Config config,
com.google.javascript.rhino.head.ErrorReporter errorReporter,
Logger logger)
Parses the JavaScript text given by a reader using Rhino.
|
static ParserRunner.ParseResult |
ParserRunner.parseEs6(StaticSourceFile sourceFile,
String sourceString,
Config config,
com.google.javascript.rhino.head.ErrorReporter errorReporter,
Logger logger)
Parses the JavaScript text using the ES6 parser.
|
| Modifier and Type | Method and Description |
|---|---|
StaticSourceFile |
Node.getStaticSourceFile()
Returns the source file associated with this input.
|
| Modifier and Type | Method and Description |
|---|---|
void |
JSDocInfoBuilder.markName(String name,
StaticSourceFile file,
int lineno,
int charno)
Adds a name declaration to the current marker.
|
void |
Node.setStaticSourceFile(StaticSourceFile file) |
| Modifier and Type | Class and Description |
|---|---|
class |
SimpleSourceFile
A simple implementation of
StaticSourceFile for testing. |
| Modifier and Type | Method and Description |
|---|---|
StaticSourceFile |
SimpleReference.getSourceFile() |
StaticSourceFile |
StaticReference.getSourceFile()
The source file where the reference lives.
|
StaticSourceFile |
Property.getSourceFile() |
Copyright © 2009-2014 Google. All Rights Reserved.