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. transpiledFilesMethods in com.google.javascript.jscomp that return SourceFile Modifier and Type Method Description SourceFileSourceFile.Builder. build()static SourceFileSourceFile. fromCode(java.lang.String fileName, java.lang.String code)static SourceFileSourceFile. fromCode(java.lang.String fileName, java.lang.String code, StaticSourceFile.SourceKind kind)static SourceFileSourceFile. fromFile(java.lang.String fileName)static SourceFileSourceFile. fromFile(java.lang.String fileName, java.nio.charset.Charset charset)static SourceFileSourceFile. fromPath(java.nio.file.Path path, java.nio.charset.Charset charset)static SourceFileSourceFile. fromProto(com.google.javascript.jscomp.serialization.SourceFileProto protoSourceFile)SourceFileCompilerInput. getSourceFile()SourceFileJsAst. getSourceFile()SourceFileRecoverableJsAst. getSourceFile()SourceFileSourceAst. getSourceFile()Returns the source file the generated AST represents.SourceFileCompiler.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 voidJSChunk. add(SourceFile file)Adds a source file input to this chunk.ResultCompiler. 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.NodeCompiler. parse(SourceFile file)voidSourceFile. restoreFrom(SourceFile other)Method parameters in com.google.javascript.jscomp with type arguments of type SourceFile Modifier and Type Method Description ResultCompiler. compile(java.util.List<SourceFile> externs, java.util.List<SourceFile> inputs, CompilerOptions options)Compiles a list of inputs.ResultCompiler. 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.voidCompiler. init(java.util.List<SourceFile> externs, java.util.List<SourceFile> sources, CompilerOptions options)Initializes the instance state needed for a compile job.voidCompiler. 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.voidCompiler. 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 diskvoidCompiler. 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 SourceFileCompilerBasedTransformer.CompilerSupplier. EMPTYprotected static SourceFileCompilerBasedTransformer.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 booleanDepsGenerator. 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.DeserializedAstTypedAstDeserializer. 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.DeserializedAstTypedAstDeserializer. 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.DeserializedAstTypedAstDeserializer. 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 SourceFileBaseTranspiler.CompilerSupplier. createEmptySource()protected SourceFileBaseTranspiler.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.BuilderRefactoringDriver.Builder. addExterns(java.lang.Iterable<SourceFile> externs)RefactoringDriver.BuilderRefactoringDriver.Builder. addInputs(java.lang.Iterable<SourceFile> inputs)
-