Uses of Class
com.google.javascript.jscomp.SourceFile
-
-
Uses of SourceFile in com.google.javascript.jscomp
Fields in com.google.javascript.jscomp with type parameters of type SourceFile Modifier and Type Field Description java.util.Set<SourceFile>
Result. transpiledFiles
Methods in com.google.javascript.jscomp that return SourceFile Modifier and Type Method Description SourceFile
SourceFile.Builder. build()
static SourceFile
SourceFile. fromCode(java.lang.String fileName, java.lang.String code)
static SourceFile
SourceFile. fromCode(java.lang.String fileName, java.lang.String code, StaticSourceFile.SourceKind kind)
static SourceFile
SourceFile. fromFile(java.lang.String fileName)
static SourceFile
SourceFile. fromFile(java.lang.String fileName, java.nio.charset.Charset charset)
static SourceFile
SourceFile. fromPath(java.nio.file.Path path, java.nio.charset.Charset charset)
static SourceFile
SourceFile. fromProto(com.google.javascript.jscomp.serialization.SourceFileProto protoSourceFile)
SourceFile
CompilerInput. getSourceFile()
SourceFile
JsAst. getSourceFile()
SourceFile
RecoverableJsAst. getSourceFile()
SourceFile
SourceAst. getSourceFile()
Returns the source file the generated AST represents.SourceFile
Compiler.ExternalSourceLoader. loadSource(java.lang.String filename)
Methods in com.google.javascript.jscomp that return types with arguments of type SourceFile Modifier and Type Method Description protected java.util.List<SourceFile>
AbstractCommandLineRunner. createExterns(CompilerOptions options)
protected java.util.List<SourceFile>
CommandLineRunner. createExterns(CompilerOptions options)
protected java.util.List<SourceFile>
AbstractCommandLineRunner. createInputs(java.util.List<AbstractCommandLineRunner.FlagEntry<AbstractCommandLineRunner.JsSourceType>> files, java.util.List<AbstractCommandLineRunner.JsonFileSpec> jsonFiles, boolean allowStdIn, java.util.List<AbstractCommandLineRunner.JsChunkSpec> jsChunkSpecs)
Creates inputs from a list of source files, zips and json files.static java.util.List<SourceFile>
SourceFile. fromZipFile(java.lang.String zipName, java.nio.charset.Charset inputCharset)
static java.util.List<SourceFile>
SourceFile. fromZipInput(java.lang.String zipName, java.io.InputStream input, java.nio.charset.Charset inputCharset)
static java.util.List<SourceFile>
AbstractCommandLineRunner. getBuiltinExterns(CompilerOptions.Environment env)
static java.util.List<SourceFile>
CommandLineRunner. getDefaultExterns()
Deprecated.static java.util.List<SourceFile>
DefaultExterns. prepareExterns(CompilerOptions.Environment env, java.util.Map<java.lang.String,SourceFile> externs)
Filters and orders the passed externs for the specified environment.Methods in com.google.javascript.jscomp with parameters of type SourceFile Modifier and Type Method Description void
JSChunk. add(SourceFile file)
Adds a source file input to this chunk.Result
Compiler. compile(SourceFile extern, SourceFile input, CompilerOptions options)
Compiles a single source file and a single externs file.java.util.Collection<JsMessage>
JsMessageExtractor. extractMessages(SourceFile... inputs)
Extracts JS messages from JavaScript code.Node
Compiler. parse(SourceFile file)
void
SourceFile. restoreFrom(SourceFile other)
Method parameters in com.google.javascript.jscomp with type arguments of type SourceFile Modifier and Type Method Description Result
Compiler. compile(java.util.List<SourceFile> externs, java.util.List<SourceFile> inputs, CompilerOptions options)
Compiles a list of inputs.Result
Compiler. compileModules(java.util.List<SourceFile> externs, java.util.List<JSChunk> modules, CompilerOptions options)
Compiles a list of modules.java.util.Collection<JsMessage>
JsMessageExtractor. extractMessages(java.lang.Iterable<SourceFile> inputs)
Extracts JS messages from JavaScript code.void
Compiler. init(java.util.List<SourceFile> externs, java.util.List<SourceFile> sources, CompilerOptions options)
Initializes the instance state needed for a compile job.void
Compiler. initModules(java.util.List<SourceFile> externs, java.util.List<JSChunk> modules, CompilerOptions options)
Initializes the instance state needed for a compile job if the sources are in modules.void
Compiler. initModulesWithTypedAstFilesystem(java.util.List<SourceFile> externs, java.util.List<JSChunk> modules, CompilerOptions options, java.io.InputStream typedAstListStream)
Initializes a compiler that will use pre-compiled TypedAst files instead of reading the source from diskvoid
Compiler. initWithTypedAstFilesystem(java.util.List<SourceFile> externs, java.util.List<SourceFile> sources, CompilerOptions options, java.io.InputStream typedAstListStream)
Initializes a compiler that will use pre-compiled TypedAst files instead of reading the source from diskstatic java.util.List<SourceFile>
DefaultExterns. prepareExterns(CompilerOptions.Environment env, java.util.Map<java.lang.String,SourceFile> externs)
Filters and orders the passed externs for the specified environment.Constructors in com.google.javascript.jscomp with parameters of type SourceFile Constructor Description CompilerInput(SourceFile file)
CompilerInput(SourceFile file, boolean isExtern)
JsAst(SourceFile sourceFile)
SourceMapInput(SourceFile sourceFile)
-
Uses of SourceFile in com.google.javascript.jscomp.bundle
Fields in com.google.javascript.jscomp.bundle declared as SourceFile Modifier and Type Field Description protected static SourceFile
CompilerBasedTransformer.CompilerSupplier. EMPTY
protected static SourceFile
CompilerBasedTransformer.CompilerSupplier. EXTERNS
-
Uses of SourceFile in com.google.javascript.jscomp.deps
Methods in com.google.javascript.jscomp.deps with parameters of type SourceFile Modifier and Type Method Description protected boolean
DepsGenerator. shouldSkipDepsFile(SourceFile file)
Returns whether we should ignore dependency info in the given deps file.Constructor parameters in com.google.javascript.jscomp.deps with type arguments of type SourceFile Constructor Description DepsGenerator(java.util.Collection<SourceFile> deps, java.util.Collection<SourceFile> srcs, DepsGenerator.InclusionStrategy mergeStrategy, java.lang.String closurePathAbs, ErrorManager errorManager, ModuleLoader loader)
Creates a new DepsGenerator. -
Uses of SourceFile in com.google.javascript.jscomp.serialization
Methods in com.google.javascript.jscomp.serialization that return types with arguments of type SourceFile Modifier and Type Method Description abstract com.google.common.collect.ImmutableMap<SourceFile,java.util.function.Supplier<Node>>
TypedAstDeserializer.DeserializedAst. getFilesystem()
Maps from SourceFile to a lazy deserializer of the SCRIPT node for that fileMethods in com.google.javascript.jscomp.serialization with parameters of type SourceFile Modifier and Type Method Description static TypedAstDeserializer.DeserializedAst
TypedAstDeserializer. deserializeFullAst(AbstractCompiler compiler, SourceFile syntheticExterns, com.google.common.collect.ImmutableList<SourceFile> existingSourceFiles, java.io.InputStream typedAstsStream, boolean includeTypeInformation)
Transforms a given TypedAst.List stream into a compiler ASTstatic TypedAstDeserializer.DeserializedAst
TypedAstDeserializer. deserializeRuntimeLibraries(AbstractCompiler compiler, SourceFile syntheticExterns, com.google.common.base.Optional<ColorPool.Builder> colorPool, java.io.InputStream typedAstsStream)
Transforms the special runtime library TypedAstMethod parameters in com.google.javascript.jscomp.serialization with type arguments of type SourceFile Modifier and Type Method Description static TypedAstDeserializer.DeserializedAst
TypedAstDeserializer. deserializeFullAst(AbstractCompiler compiler, SourceFile syntheticExterns, com.google.common.collect.ImmutableList<SourceFile> existingSourceFiles, java.io.InputStream typedAstsStream, boolean includeTypeInformation)
Transforms a given TypedAst.List stream into a compiler AST -
Uses of SourceFile in com.google.javascript.jscomp.transpile
Methods in com.google.javascript.jscomp.transpile that return SourceFile Modifier and Type Method Description protected SourceFile
BaseTranspiler.CompilerSupplier. createEmptySource()
protected SourceFile
BaseTranspiler.CompilerSupplier. createTrivialExterns()
-
Uses of SourceFile in com.google.javascript.refactoring
Method parameters in com.google.javascript.refactoring with type arguments of type SourceFile Modifier and Type Method Description RefactoringDriver.Builder
RefactoringDriver.Builder. addExterns(java.lang.Iterable<SourceFile> externs)
RefactoringDriver.Builder
RefactoringDriver.Builder. addInputs(java.lang.Iterable<SourceFile> inputs)
-