Lines Matching +full:input +full:-
2 * Copyright (c) 2021-2022 Huawei Device Co., Ltd.
7 * http://www.apache.org/licenses/LICENSE-2.0
75 static std::vector<std::string> GetStringItems(std::string &input, const std::string &delimiter) in GetStringItems() argument
80 while ((pos = input.find(delimiter)) != std::string::npos) { in GetStringItems()
81 token = input.substr(0, pos); in GetStringItems()
85 input.erase(0, pos + delimiter.length()); in GetStringItems()
87 if (!input.empty()) { in GetStringItems()
88 items.push_back(input); in GetStringItems()
94 bool Options::CollectInputFilesFromFileList(const std::string &input, const std::string &inputExten… in CollectInputFilesFromFileList() argument
98 ifs.open(panda::os::file::File::GetExtendedFilePath(input)); in CollectInputFilesFromFileList()
100 std::cerr << "Failed to open source list: " << input << std::endl; in CollectInputFilesFromFileList()
110 std::cerr << "Failed to parse input file" << std::endl; in CollectInputFilesFromFileList()
139 bool Options::CollectInputFilesFromFileDirectory(const std::string &input, const std::string &exten… in CollectInputFilesFromFileDirectory() argument
142 if (!proto::MergeProgram::GetProtoFiles(input, extension, files)) { in CollectInputFilesFromFileDirectory()
147 es2panda::SourceFile src(f, RemoveExtension(f.substr(input.length() + 1)), in CollectInputFilesFromFileDirectory()
193 … "Parse the input as the given extension (options: js | ts | as)"); in Parse()
194 panda::PandArg<bool> opModule("module", false, "Parse the input as module"); in Parse()
195 panda::PandArg<bool> opCommonjs("commonjs", false, "Parse the input as commonjs"); in Parse()
196 panda::PandArg<bool> opParseOnly("parse-only", false, "Parse the input only"); in Parse()
197 …panda::PandArg<bool> opEnableTypeCheck("enable-type-check", false, "Check the type in ts after par… in Parse()
198 panda::PandArg<bool> opDumpAst("dump-ast", false, "Dump the parsed AST"); in Parse()
199 …panda::PandArg<bool> opDumpTransformedAst("dump-transformed-ast", false, "Dump the parsed AST afte… in Parse()
200 panda::PandArg<bool> opCheckTransformedAstStructure("check-transformed-ast-structure", false, in Parse()
204 …panda::PandArg<bool> opTypeExtractor("type-extractor", false, "Enable type extractor for typescrip… in Parse()
205 …panda::PandArg<bool> opTypeDtsBuiltin("type-dts-builtin", false, "Enable builtin type extractor fo… in Parse()
208 panda::PandArg<bool> opDumpAssembly("dump-assembly", false, "Dump pandasm"); in Parse()
209 panda::PandArg<bool> opDebugInfo("debug-info", false, "Compile with debug info"); in Parse()
210 panda::PandArg<bool> opDumpDebugInfo("dump-debug-info", false, "Dump debug info"); in Parse()
211 panda::PandArg<int> opOptLevel("opt-level", 2, in Parse()
213 …panda::PandArg<int> opFunctionThreadCount("function-threads", 0, "Number of worker threads to comp… in Parse()
214 …panda::PandArg<int> opFileThreadCount("file-threads", 0, "Number of worker threads to compile file… in Parse()
215 panda::PandArg<bool> opSizeStat("dump-size-stat", false, "Dump size statistics"); in Parse()
216 panda::PandArg<bool> opDumpLiteralBuffer("dump-literal-buffer", false, "Dump literal buffer"); in Parse()
218 panda::PandArg<std::string> recordName("record-name", "", "Specify the record name"); in Parse()
219 panda::PandArg<bool> debuggerEvaluateExpression("debugger-evaluate-expression", false, in Parse()
221 panda::PandArg<std::string> base64Input("base64Input", "", "base64 input of js content"); in Parse()
223 panda::PandArg<std::string> sourceFile("source-file", "", in Parse()
227 panda::PandArg<std::string> opCacheFile("cache-file", "", "cache file for incremental compile"); in Parse()
228 …panda::PandArg<std::string> opNpmModuleEntryList("npm-module-entry-list", "", "entry list file for… in Parse()
229 panda::PandArg<bool> opMergeAbc("merge-abc", false, "Compile as merge abc"); in Parse()
232 …panda::PandArg<std::string> opDumpSymbolTable("dump-symbol-table", "", "dump symbol table to file"… in Parse()
233 …panda::PandArg<std::string> opInputSymbolTable("input-symbol-table", "", "input symbol table file"… in Parse()
234 …panda::PandArg<bool> opGeneratePatch("generate-patch", false, "generate patch abc, default as hotf… in Parse()
235 "the cold-fix argument is set"); in Parse()
236 panda::PandArg<bool> opHotReload("hot-reload", false, "compile as hot-reload mode"); in Parse()
237 panda::PandArg<bool> opColdFix("cold-fix", false, "generate patch abc as cold-fix mode"); in Parse()
240 panda::PandArg<bool> bcVersion("bc-version", false, "Print ark bytecode version"); in Parse()
241 …panda::PandArg<bool> bcMinVersion("bc-min-version", false, "Print ark bytecode minimum supported v… in Parse()
244 panda::PandArg<std::string> inputFile("input", "", "input file"); in Parse()
246 argparser_->Add(&opHelp); in Parse()
247 argparser_->Add(&opModule); in Parse()
248 argparser_->Add(&opCommonjs); in Parse()
249 argparser_->Add(&opDumpAst); in Parse()
250 argparser_->Add(&opDumpTransformedAst); in Parse()
251 argparser_->Add(&opCheckTransformedAstStructure); in Parse()
252 argparser_->Add(&opParseOnly); in Parse()
253 argparser_->Add(&opEnableTypeCheck); in Parse()
254 argparser_->Add(&opTypeExtractor); in Parse()
255 argparser_->Add(&opTypeDtsBuiltin); in Parse()
256 argparser_->Add(&opDumpAssembly); in Parse()
257 argparser_->Add(&opDebugInfo); in Parse()
258 argparser_->Add(&opDumpDebugInfo); in Parse()
259 argparser_->Add(&debuggerEvaluateExpression); in Parse()
260 argparser_->Add(&base64Input); in Parse()
261 argparser_->Add(&base64Output); in Parse()
263 argparser_->Add(&opOptLevel); in Parse()
264 argparser_->Add(&opFunctionThreadCount); in Parse()
265 argparser_->Add(&opFileThreadCount); in Parse()
266 argparser_->Add(&opSizeStat); in Parse()
267 argparser_->Add(&opDumpLiteralBuffer); in Parse()
269 argparser_->Add(&inputExtension); in Parse()
270 argparser_->Add(&outputFile); in Parse()
271 argparser_->Add(&sourceFile); in Parse()
272 argparser_->Add(&recordName); in Parse()
273 argparser_->Add(&outputProto); in Parse()
274 argparser_->Add(&opCacheFile); in Parse()
275 argparser_->Add(&opNpmModuleEntryList); in Parse()
276 argparser_->Add(&opMergeAbc); in Parse()
278 argparser_->Add(&opDumpSymbolTable); in Parse()
279 argparser_->Add(&opInputSymbolTable); in Parse()
280 argparser_->Add(&opGeneratePatch); in Parse()
281 argparser_->Add(&opHotReload); in Parse()
282 argparser_->Add(&opColdFix); in Parse()
284 argparser_->Add(&bcVersion); in Parse()
285 argparser_->Add(&bcMinVersion); in Parse()
287 argparser_->PushBackTail(&inputFile); in Parse()
288 argparser_->EnableTail(); in Parse()
289 argparser_->EnableRemainder(); in Parse()
291 bool parseStatus = argparser_->Parse(argc, argv); in Parse()
302 ss << argparser_->GetErrorString() << std::endl; in Parse()
305 << " [OPTIONS] [input file] -- [arguments]" << std::endl; in Parse()
308 ss << argparser_->GetHelpString() << std::endl; in Parse()
319 errorMsg_ = "--input and --base64Input can not be used simultaneously"; in Parse()
324 errorMsg_ = "--output and --base64Output can not be used simultaneously"; in Parse()
329 errorMsg_ = "[--module] and [--commonjs] can not be used simultaneously"; in Parse()
345 DCOUT << "[LOG]TypeExtractor is enabled, type-dts-builtin: " << in Parse()
363 std::string input = isInputFileList ? rawInput.substr(1) : rawInput; in Parse() local
364 sourceFile_ = input; in Parse()
402 // input content is base64 string in Parse()
405 errorMsg_ = "The input string is not a valid base64 data"; in Parse()
463 errorMsg_ = "--generate-patch and --hot-reload can not be used simultaneously"; in Parse()
467 errorMsg_ = "--cold-fix can not be used without --generate-patch"; in Parse()