• Home
  • Raw
  • Download

Lines Matching +full:panda +full:- +full:options

7  * http://www.apache.org/licenses/LICENSE-2.0
30 namespace panda::es2panda { namespace
40 if (parser_->Extension() == ScriptExtension::TS) { in Compiler()
41 transformer_ = std::make_unique<parser::Transformer>(parser_->Allocator()); in Compiler()
51 panda::pandasm::Program *CreateJsonContentProgram(std::string src, std::string rname, util::Hotfix … in CreateJsonContentProgram()
53 panda::es2panda::compiler::CompilerContext context(nullptr, false, false, false, false, true, in CreateJsonContentProgram()
55 return context.GetEmitter()->Finalize(false, nullptr); in CreateJsonContentProgram()
58 panda::pandasm::Program *Compiler::Compile(const SourceFile &input, const CompilerOptions &options, in Compile() argument
69 auto *hotfixHelper = InitHotfixHelper(input, options, symbolTable); in Compile()
76 auto ast = parser_->Parse(fname, src, rname, kind); in Compile()
77 ast.Binder()->SetProgram(&ast); in Compile()
79 if (options.dumpAst) { in Compile()
83 if (ast.Extension() == ScriptExtension::TS && options.enableTypeCheck) { in Compile()
86 checker->StartChecker(); in Compile()
90 transformer_->Transform(&ast); in Compile()
91 ast.Binder()->IdentifierAnalysis(binder::ResolveBindingFlags::ALL); in Compile()
94 if (options.parseOnly) { in Compile()
98 std::string debugInfoSourceFile = options.debugInfoSourceFile.empty() ? in Compile()
99 sourcefile : options.debugInfoSourceFile; in Compile()
100 auto *prog = compiler_->Compile(&ast, options, debugInfoSourceFile, pkgName); in Compile()
112 util::Hotfix *Compiler::InitHotfixHelper(const SourceFile &input, const CompilerOptions &options, in InitHotfixHelper() argument
115 bool needDumpSymbolFile = !options.hotfixOptions.dumpSymbolTable.empty(); in InitHotfixHelper()
116 …bool needGeneratePatch = options.hotfixOptions.generatePatch && !options.hotfixOptions.symbolTable… in InitHotfixHelper()
117 bool isHotReload = options.hotfixOptions.hotReload; in InitHotfixHelper()
122 parser_->AddHotfixHelper(hotfixHelper); in InitHotfixHelper()
123 compiler_->AddHotfixHelper(hotfixHelper); in InitHotfixHelper()
136 void Compiler::DumpAsm(const panda::pandasm::Program *prog) in DumpAsm()
141 int Compiler::CompileFiles(CompilerOptions &options, in CompileFiles() argument
142 …std::map<std::string, panda::es2panda::util::ProgramCache*> &progsInfo, panda::ArenaAllocator *all… in CompileFiles()
145 …if (!options.hotfixOptions.symbolTable.empty() || !options.hotfixOptions.dumpSymbolTable.empty()) { in CompileFiles()
146 …symbolTable = new util::SymbolTable(options.hotfixOptions.symbolTable, options.hotfixOptions.dumpS… in CompileFiles()
147 if (!symbolTable->Initialize()) { in CompileFiles()
154 …auto queue = new compiler::CompileFileQueue(options.fileThreadCount, &options, progsInfo, symbolTa… in CompileFiles()
157 queue->Schedule(); in CompileFiles()
158 queue->Consume(); in CompileFiles()
159 queue->Wait(); in CompileFiles()
175 panda::pandasm::Program *Compiler::CompileFile(const CompilerOptions &options, SourceFile *src, in CompileFile() argument
178 if (src->source.empty()) { in CompileFile()
182 auto *program = Compile(*src, options, symbolTable); in CompileFile()
186 if (err.Message().empty() && options.parseOnly) { in CompileFile()
191 std::cerr << " [" << util::Helpers::BaseName(src->fileName) << ":" in CompileFile()
198 } // namespace panda::es2panda