public CompilerInput(SourceAst ast, String inputId, boolean isExtern) { this(ast, new InputId(inputId), isExtern); }
public CompilerInput(SourceAst ast, String inputId, boolean isExtern) { this(ast, new InputId(inputId), isExtern); }
private void removeSyntheticVarsInput() { String sourceName = Compiler.SYNTHETIC_EXTERNS; removeExternInput(new InputId(sourceName)); }
private void removeSyntheticVarsInput() { String sourceName = Compiler.SYNTHETIC_EXTERNS; removeExternInput(new InputId(sourceName)); }
@Override SourceFile getSourceFileByName(String sourceName) { // Here we assume that the source name is the input name, this // is try of JavaScript parsed from source. if (sourceName != null) { CompilerInput input = inputsById.get(new InputId(sourceName)); if (input != null) { return input.getSourceFile(); } // Alternatively, the sourceName might have been reverse-mapped by // an input source-map, so let's look in our sourcemap original sources. return sourceMapOriginalSources.get(sourceName); } return null; }
@Override SourceFile getSourceFileByName(String sourceName) { // Here we assume that the source name is the input name, this // is true of JavaScript parsed from source. if (sourceName != null) { CompilerInput input = inputsById.get(new InputId(sourceName)); if (input != null) { return input.getSourceFile(); } // Alternatively, the sourceName might have been reverse-mapped by // an input source-map, so let's look in our sourcemap original sources. return sourceMapOriginalSources.get(sourceName); } return null; }
SyntheticAst(String sourceName) { this.inputId = new InputId(sourceName); this.sourceFile = new SourceFile(sourceName, SourceKind.STRONG); clearAst(); }
public JsAst(SourceFile sourceFile) { this.inputId = new InputId(sourceFile.getName()); this.sourceFile = sourceFile; this.fileName = sourceFile.getName(); }
public JsAst(SourceFile sourceFile) { this.inputId = new InputId(sourceFile.getName()); this.sourceFile = sourceFile; this.fileName = sourceFile.getName(); }
SyntheticAst(String sourceName) { this.inputId = new InputId(sourceName); this.sourceFile = new SourceFile(sourceName); clearAst(); }
public SyntheticAst(Node root) { this.inputId = new InputId(root.getSourceFileName()); this.sourceFile = new SourceFile(root.getSourceFileName(), SourceKind.STRONG); this.root = checkNotNull(root); }
public SyntheticAst(Node root) { this.inputId = new InputId(root.getSourceFileName()); this.sourceFile = new SourceFile(root.getSourceFileName()); this.root = root; }
CompilerInput symbolInput = this.compiler.getInput(new InputId(symbol.getInputName())); if (symbolInput == null || symbolInput.isExtern()) continue;
CompilerInput symbolInput = compiler.getInput(new InputId(symbol.getInputName())); if (symbolInput == null || !symbolInput.isExtern() || symbol.getType() == null) { continue;