Uses of Class
com.google.javascript.jscomp.SourceFile
Packages that use SourceFile
Package
Description
-
Uses of SourceFile in com.google.javascript.jscomp
Methods in com.google.javascript.jscomp that return SourceFileModifier and TypeMethodDescriptionSourceFile.Builder.build()
static @Nullable SourceFile
SourceMapResolver.extractSourceMap
(SourceFile jsFile, String sourceMapURL, boolean parseInlineSourceMaps) For a given //# sourceMappingUrl, this locates the appropriate sourcemap on disk.static SourceFile
static SourceFile
SourceFile.fromCode
(String fileName, String code, StaticSourceFile.SourceKind kind) static SourceFile
static SourceFile
static SourceFile
static SourceFile
SourceFile.fromProto
(com.google.javascript.jscomp.serialization.SourceFileProto protoSourceFile) CompilerInput.getSourceFile()
Compiler.ExternalSourceLoader.loadSource
(String filename) static SourceFile
SourceFile.stubSourceFile
(String fileName, StaticSourceFile.SourceKind kind) Returns a stub SourceFile with the given name and kind.Methods in com.google.javascript.jscomp that return types with arguments of type SourceFileModifier and TypeMethodDescriptionprotected List
<SourceFile> AbstractCommandLineRunner.createExterns
(CompilerOptions options) protected List
<SourceFile> CommandLineRunner.createExterns
(CompilerOptions options) protected List
<SourceFile> AbstractCommandLineRunner.createInputs
(List<AbstractCommandLineRunner.FlagEntry<AbstractCommandLineRunner.JsSourceType>> files, @Nullable List<AbstractCommandLineRunner.JsonFileSpec> jsonFiles, boolean allowStdIn, List<AbstractCommandLineRunner.JsChunkSpec> jsChunkSpecs) Creates inputs from a list of source files, zips and json files.static List
<SourceFile> SourceFile.fromZipFile
(String zipName, Charset inputCharset) static List
<SourceFile> SourceFile.fromZipInput
(String zipName, InputStream input, Charset inputCharset) static List
<SourceFile> AbstractCommandLineRunner.getBuiltinExterns
(CompilerOptions.Environment env) static List
<SourceFile> CommandLineRunner.getDefaultExterns()
Deprecated.static List
<SourceFile> DefaultExterns.prepareExterns
(CompilerOptions.Environment env, Map<String, SourceFile> externs) Filters and orders the passed externs for the specified environment.Methods in com.google.javascript.jscomp with parameters of type SourceFileModifier and TypeMethodDescriptionvoid
JSChunk.add
(SourceFile file) Adds a source file input to this chunk.Compiler.compile
(SourceFile extern, SourceFile input, CompilerOptions options) Compiles a single source file and a single externs file.JsMessageExtractor.extractMessages
(SourceFile... inputs) Extracts JS messages from JavaScript code.static @Nullable SourceFile
SourceMapResolver.extractSourceMap
(SourceFile jsFile, String sourceMapURL, boolean parseInlineSourceMaps) For a given //# sourceMappingUrl, this locates the appropriate sourcemap on disk.Compiler.parse
(SourceFile file) Method parameters in com.google.javascript.jscomp with type arguments of type SourceFileModifier and TypeMethodDescriptionCompiler.compile
(List<SourceFile> externs, List<SourceFile> inputs, CompilerOptions options) Compiles a list of inputs.Compiler.compileChunks
(List<SourceFile> externs, List<JSChunk> chunks, CompilerOptions options) Compiles a list of chunks.JsMessageExtractor.extractMessages
(Iterable<SourceFile> inputs) Extracts JS messages from JavaScript code.final void
Compiler.init
(List<SourceFile> externs, List<SourceFile> sources, CompilerOptions options) Initializes the instance state needed for a compile job.void
Compiler.initChunks
(List<SourceFile> externs, List<JSChunk> chunks, CompilerOptions options) Initializes the instance state needed for a compile job if the sources are in modules.void
Compiler.initChunksWithTypedAstFilesystem
(List<SourceFile> externs, List<JSChunk> chunks, CompilerOptions options, InputStream typedAstListStream) Initializes a compiler with deserialized state from the given TypedAst.Listfinal void
Compiler.initWithTypedAstFilesystem
(List<SourceFile> externs, List<SourceFile> sources, CompilerOptions options, InputStream typedAstListStream) Initializes a compiler with deserialized state from the given TypedAst.Liststatic List
<SourceFile> DefaultExterns.prepareExterns
(CompilerOptions.Environment env, Map<String, SourceFile> externs) Filters and orders the passed externs for the specified environment.Constructors in com.google.javascript.jscomp with parameters of type SourceFileModifierConstructorDescriptionCompilerInput
(SourceFile file) CompilerInput
(SourceFile file, boolean isExtern) CompilerInput
(SourceFile file, InputId inputId) CompilerInput
(SourceFile sourceFile, InputId inputId, boolean isExtern) Deprecated.the inputId is read from the SourceFile.CompilerInput
(SourceFile sourceFile, String inputId, boolean isExtern) Deprecated.the inputId is read from the SourceFile.SourceMapInput
(SourceFile sourceFile) -
Uses of SourceFile in com.google.javascript.jscomp.bundle
Fields in com.google.javascript.jscomp.bundle declared as SourceFileModifier and TypeFieldDescriptionprotected static final SourceFile
CompilerBasedTransformer.CompilerSupplier.EMPTY
protected static final SourceFile
CompilerBasedTransformer.CompilerSupplier.EXTERNS
-
Uses of SourceFile in com.google.javascript.jscomp.deps
Methods in com.google.javascript.jscomp.deps with parameters of type SourceFileModifier and TypeMethodDescriptionprotected 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 SourceFileModifierConstructorDescriptionDepsGenerator
(Collection<SourceFile> deps, Collection<SourceFile> srcs, DepsGenerator.InclusionStrategy mergeStrategy, 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 SourceFileModifier and TypeMethodDescriptionabstract ConcurrentMap
<SourceFile, 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 SourceFileModifier and TypeMethodDescriptionTypedAstDeserializer.deserializeFullAst
(AbstractCompiler compiler, SourceFile syntheticExterns, com.google.common.collect.ImmutableSet<SourceFile> requiredInputFiles, InputStream typedAstsStream, boolean includeTypeInformation, boolean resolveSourceMapAnnotations, boolean parseInlineSourceMaps) Transforms a given TypedAst delimited stream into a compiler ASTTypedAstDeserializer.deserializeRuntimeLibraries
(AbstractCompiler compiler, SourceFile syntheticExterns, com.google.common.base.Optional<ColorPool.Builder> colorPool, InputStream typedAstsStream, boolean resolveSourceMapAnnotations, boolean parseInlineSourceMaps) Transforms the special runtime library TypedAstMethod parameters in com.google.javascript.jscomp.serialization with type arguments of type SourceFileModifier and TypeMethodDescriptionTypedAstDeserializer.deserializeFullAst
(AbstractCompiler compiler, SourceFile syntheticExterns, com.google.common.collect.ImmutableSet<SourceFile> requiredInputFiles, InputStream typedAstsStream, boolean includeTypeInformation, boolean resolveSourceMapAnnotations, boolean parseInlineSourceMaps) Transforms a given TypedAst delimited stream into a compiler AST -
Uses of SourceFile in com.google.javascript.jscomp.transpile
Methods in com.google.javascript.jscomp.transpile that return SourceFileModifier and TypeMethodDescriptionprotected 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 SourceFileModifier and TypeMethodDescriptionRefactoringDriver.Builder.addExterns
(Iterable<SourceFile> externs) RefactoringDriver.Builder.addInputs
(Iterable<SourceFile> inputs)