public abstract class AbstractCompiler extends Object implements SourceExcerptProvider
SourceExcerptProvider.ExcerptFormatter, SourceExcerptProvider.SourceExcerpt
Constructor and Description |
---|
AbstractCompiler() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addInputSourceMap(String name,
SourceMapInput sourceMap)
Adds a
SourceMapInput for the given sourceFileName , to be used for error
reporting and source map combining. |
abstract CodingConvention |
getCodingConvention()
Gets the current coding convention.
|
abstract ErrorManager |
getErrorManager()
Gets the error manager.
|
abstract CompilerInput |
getInput(InputId inputId)
Looks up an input (possibly an externs input) by input id.
|
abstract double |
getProgress() |
abstract ReverseAbstractInterpreter |
getReverseAbstractInterpreter()
Get an interpreter for type analysis.
|
abstract TypedScope |
getTopScope()
Gets the top scope.
|
abstract TypeIRegistry |
getTypeIRegistry() |
abstract JSTypeRegistry |
getTypeRegistry()
Gets a central registry of type information from the compiled JS.
|
abstract void |
report(JSError error)
Report an error or warning.
|
abstract void |
reportCodeChange()
Report code changes.
|
abstract String |
toSource()
Prints a node to source code.
|
abstract String |
toSource(Node root)
Prints a node to source code.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getSourceLine, getSourceMapping, getSourceRegion
public abstract CompilerInput getInput(InputId inputId)
public abstract JSTypeRegistry getTypeRegistry()
public abstract TypeIRegistry getTypeIRegistry()
public abstract TypedScope getTopScope()
public abstract void report(JSError error)
public abstract CodingConvention getCodingConvention()
public abstract void reportCodeChange()
public abstract String toSource()
public abstract ReverseAbstractInterpreter getReverseAbstractInterpreter()
public abstract ErrorManager getErrorManager()
public abstract double getProgress()
public abstract void addInputSourceMap(String name, SourceMapInput sourceMap)
SourceMapInput
for the given sourceFileName
, to be used for error
reporting and source map combining.Copyright © 2009-2016 Google. All Rights Reserved.