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.jscomp.parsing.parser | |
com.google.javascript.jscomp.parsing.parser.trees |
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,java.util.List<Comment>> |
Compiler.commentsPerFile |
Modifier and Type | Method and Description |
---|---|
java.util.List<Comment> |
Compiler.getComments(java.lang.String filename) |
(package private) abstract java.util.List<Comment> |
AbstractCompiler.getComments(java.lang.String filename)
Returns all the comments from the given file.
|
Modifier and Type | Method and Description |
---|---|
(package private) void |
Compiler.addComments(java.lang.String filename,
java.util.List<Comment> comments) |
(package private) abstract void |
AbstractCompiler.addComments(java.lang.String filename,
java.util.List<Comment> comments) |
Modifier and Type | Field and Description |
---|---|
private Comment |
IRFactory.currentComment |
Modifier and Type | Field and Description |
---|---|
java.util.List<Comment> |
ParserRunner.ParseResult.comments |
private com.google.common.collect.UnmodifiableIterator<Comment> |
IRFactory.nextCommentIter |
private java.util.Set<Comment> |
IRFactory.parsedComments |
Modifier and Type | Method and Description |
---|---|
private Comment |
IRFactory.getJsDoc(ParseTree tree) |
private Comment |
IRFactory.getJsDoc(SourceRange location) |
private Comment |
IRFactory.getJsDoc(Token token) |
Modifier and Type | Method and Description |
---|---|
private JsDocInfoParser |
IRFactory.createJsDocInfoParser(Comment node)
Creates a JsDocInfoParser and parses the JsDoc string.
|
private void |
IRFactory.handleBlockComment(Comment comment)
Check to see if the given block comment looks like it should be JSDoc.
|
private JSDocInfo |
IRFactory.handleJsDoc(Comment comment) |
private void |
IRFactory.handlePossibleFileOverviewJsDoc(Comment comment) |
private JSDocInfo |
IRFactory.parseInlineTypeDoc(Comment node)
Parses inline type info.
|
Constructor and Description |
---|
IRFactory(java.lang.String sourceString,
StaticSourceFile sourceFile,
Config config,
ErrorReporter errorReporter,
com.google.common.collect.ImmutableList<Comment> comments) |
ParseResult(Node ast,
java.util.List<Comment> comments,
FeatureSet features) |
Modifier and Type | Field and Description |
---|---|
private com.google.common.collect.ImmutableList.Builder<Comment> |
Parser.CommentRecorder.comments |
Modifier and Type | Method and Description |
---|---|
java.util.List<Comment> |
Parser.getComments() |
private com.google.common.collect.ImmutableList<Comment> |
Parser.CommentRecorder.getComments() |
Modifier and Type | Field and Description |
---|---|
com.google.common.collect.ImmutableList<Comment> |
ProgramTree.sourceComments |
Constructor and Description |
---|
ProgramTree(SourceRange location,
com.google.common.collect.ImmutableList<ParseTree> sourceElements,
com.google.common.collect.ImmutableList<Comment> sourceComments) |