Lines Matching refs:extension
54 static es2panda::ScriptExtension GetScriptExtensionFromStr(const std::string &extension)
56 if (extension == "js") {
58 } else if (extension == "ts") {
60 } else if (extension == "as") {
62 } else if (extension == "abc") {
199 bool Options::CollectInputFilesFromFileDirectory(const std::string &input, const std::string &extension)
202 if (!proto::MergeProgram::GetProtoFiles(input, extension, files)) {
208 scriptKind_, GetScriptExtensionFromStr(extension));
343 panda::PandArg<std::string> inputExtension("extension", "js",
344 "Parse the input as the given extension (options: js | ts | as | abc)");
575 std::string extension = inputExtension.GetValue();
576 if (!extension.empty()) {
577 if (VALID_EXTENSIONS.find(extension) == VALID_EXTENSIONS.end()) {
578 errorMsg_ = "Invalid extension (available options: js, ts, as, abc)";
624 CollectInputFilesFromFileList(fpath, extension);
626 CollectInputFilesFromFileDirectory(fpath, extension);
628 es2panda::SourceFile src(sourceFile_, recordName_, scriptKind_, GetScriptExtension(sourceFile_, extension));
629 src.isSourceMode = !IsAbcFile(sourceFile_, extension);
641 GetScriptExtensionFromStr(extension));