Home
last modified time | relevance | path

Searched refs:options (Results 1 – 25 of 256) sorted by relevance

1234567891011

/arkcompiler/ets_frontend/ts2panda/src/
DcmdOptions.ts66 private static options: commandLineArgs.CommandLineOptions; property in CmdOptions
69 if (!this.options) {
72 return this.options["display-typeinfo"];
76 if (!this.options) {
79 return this.options["debug-log"];
83 if (!this.options) {
86 return this.options["dump-assembly"];
90 if (!this.options) {
93 return this.options["debug"];
97 this.options["debug-add-watch"] = watchArgs;
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DdestructuringAssignmentWithDefault.ts40 function f1(options?: { color?: string, width?: number }) {
41 let { color, width } = options || {};
44 AssertType(options || {}, "{ color?: union; width?: union; }");
45 AssertType(options, "union");
48 ({ color, width } = options || {});
49 AssertType(({ color, width } = options || {}), "{ color?: union; width?: union; }");
50 AssertType({ color, width } = options || {}, "{ color?: union; width?: union; }");
54 AssertType(options || {}, "{ color?: union; width?: union; }");
55 AssertType(options, "union");
58 let x1 = (options || {}).color;
[all …]
DoptionalParamterAndVariableDeclaration.ts22 constructor(options?: number) {
23 let options = (options || 0);
24 AssertType(options, "number");
25 AssertType((options || 0), "number");
26 AssertType(options || 0, "number");
27 AssertType(options, "number");
Darrayconcat.ts32 public options: IOptions[]; property in parser
35 this.options = this.options.sort(function(a, b) {
36 AssertType(this.options, "IOptions[]");
38 AssertType(this.options.sort(function(a, b) { let aName = a.name.toLowerCase(); …
39 AssertType(this.options.sort, "(?(IOptions, IOptions) => number) => IOptions[]");
40 AssertType(this.options, "IOptions[]");
45 AssertType(this.options = this.options.sort(function(a, b) { let aName = a.name.toLowerC…
Des2018IntlAPIs.ts30 const options = { localeMatcher: 'lookup' } as const;
31 AssertType(options, "{ readonly localeMatcher: "lookup"; }");
37 console.log(Intl.PluralRules.supportedLocalesOf(locales, options).join(', '));
38 AssertType(console.log(Intl.PluralRules.supportedLocalesOf(locales, options).join(', ')), "void");
40 AssertType(Intl.PluralRules.supportedLocalesOf(locales, options).join(', '), "string");
41 AssertType(Intl.PluralRules.supportedLocalesOf(locales, options).join, "(?string) => string");
DcircularlySimplifyingConditionalTypesNoCrash.ts49 options: unknown
58 …s?: any, options: unknown = {},) { return connect( mapStateToProps, mapDispatc…
69 options: unknown = {},
70 AssertType(options, "unknown");
74 … mapStateToProps, mapDispatchToProps, mergeProps, options, ), "Inferable…
87 options,
88 AssertType(options, "unknown");
DdeclarationEmitOverloadedPrivateInference.ts34 private proxy<T, U>(fn: (options: T) => U): (options: T) => U;
35 private proxy<T, U>(fn: (options?: T) => U, noArgs: true): (options?: T) => U;
37 private proxy<T, U>(fn: (options: T) => U) {
DconstructorArgs.ts31 constructor(public options:Options) { property in Sub
32 super(options.value);
33 AssertType(super(options.value), "void");
35 AssertType(options.value, "number");
DunionReductionMutualSubtypes.ts38 function run(options: { something?(b?: string): void }) {
39 const something = options.something ?? val.something;
41 AssertType(options.something ?? val.something, "(?union) => void");
42 AssertType(options.something, "union");
/arkcompiler/ets_frontend/ts2panda/ts2abc/
Dmain.cpp23 int Preprocess(const panda::ts2abc::Options &options, const panda::PandArgParser &argParser, std::s… in Preprocess() argument
27 if (!options.GetCompileByPipeArg()) { in Preprocess()
28 input = options.GetTailArg1(); in Preprocess()
29 output = options.GetTailArg2(); in Preprocess()
42 output = options.GetTailArg1(); in Preprocess()
52 bool HandleNpmEntries(const panda::ts2abc::Options &options, const panda::PandArgParser &argParser, in HandleNpmEntries() argument
55 std::string input = options.GetTailArg1(); in HandleNpmEntries()
56 std::string output = options.GetTailArg2(); in HandleNpmEntries()
57 if (options.GetCompileByPipeArg() || input.empty() || output.empty()) { in HandleNpmEntries()
58 if (options.GetCompileByPipeArg()) { in HandleNpmEntries()
[all …]
/arkcompiler/ets_frontend/es2panda/
Des2panda.cpp59 panda::pandasm::Program *Compiler::Compile(const SourceFile &input, const CompilerOptions &options, in Compile() argument
70 auto *patchFixHelper = InitPatchFixHelper(input, options, symbolTable); in Compile()
77 parser_->SetDebug(options.isDebug); in Compile()
81 if (options.dumpAst) { in Compile()
85 if (ast.Extension() == ScriptExtension::TS && options.enableTypeCheck) { in Compile()
94 if (options.dumpTransformedAst) { in Compile()
97 if (options.checkTransformedAstStructure) { in Compile()
102 if (options.parseOnly) { in Compile()
106 std::string debugInfoSourceFile = options.debugInfoSourceFile.empty() ? in Compile()
107 sourcefile : options.debugInfoSourceFile; in Compile()
[all …]
/arkcompiler/ets_frontend/es2panda/aot/
Dmain.cpp85 …const std::unique_ptr<panda::es2panda::aot::Options> &options, std::map<std::string, size_t> *stat… in GenerateProgramsByWorkers() argument
87 auto queue = new panda::es2panda::aot::EmitFileQueue(options, statp, programsInfo); in GenerateProgramsByWorkers()
106 const std::unique_ptr<panda::es2panda::aot::Options> &options) in DumpProgramInfos() argument
108 const es2panda::CompilerOptions &compilerOptions = options->CompilerOptions(); in DumpProgramInfos()
123 const std::unique_ptr<panda::es2panda::aot::Options> &options) in GenerateProgram() argument
125 DumpProgramInfos(programsInfo, options); in GenerateProgram()
129 if (options->OutputFiles().empty() && options->CompilerOutput().empty()) { in GenerateProgram()
134 if (options->compilerProtoOutput().size() > 0) { in GenerateProgram()
135 … panda::proto::ProtobufSnapshotGenerator::GenerateSnapshot(*prog, options->compilerProtoOutput()); in GenerateProgram()
140 bool dumpSize = options->SizeStat(); in GenerateProgram()
[all …]
/arkcompiler/ets_frontend/ts2panda/scripts/
Drun.py64 def node_modules(options): argument
65 src_dir = options.src_dir
66 dist_dir = options.dist_dir
72 if options.node_modules:
73 run_command(['cp', '-rf', options.node_modules,
79 def per_platform_config(options, inp_dir): argument
80 dist_dir = options.dist_dir
89 (js2abc_dir, _) = os.path.split(options.js2abc)
97 run_command(['cp', '-f', options.js2abc, bin_dir])
101 run_command(['cp', '-f', options.js2abc, obj_bin_dir])
[all …]
/arkcompiler/ets_frontend/arkguard/src/generator/
DNameFactory.ts33 export function getNameGenerator(generatorType: NameGeneratorType, options?: NameGeneratorOptions):…
37 return new OrderedNameGenerator(options);
39 return new DisorderNameGenerator(options);
41 return new HexNameGenerator(options);
43 return new DictionaryNameGenerator(options);
45 return new ReservedNameGenerator(options);
47 return new UnderlineNameGenerator(options);
50 return new OrderedNameGenerator(options);
DHexNameGenerator.ts37 constructor(options?: NameGeneratorOptions) {
39 if (options && options.hexLength) {
40 this.mHexLength = options.hexLength;
43 this.mWithPrefixSuffix = options && options.hexWithPrefixSuffix;
44 this.mReservedNames = options?.reservedNames;
DUnderlineNameGenerator.ts27 constructor(options: NameGeneratorOptions) {
29 … this.mMaxLength = (options && options.underlineMaxLength) ? options.underlineMaxLength : maxValue;
30 this.mReservedNames = options?.reservedNames;
DDictionaryNameGenerator.ts32 constructor(options?: NameGeneratorOptions) {
33 …this.mDictionaryList = (options && options.dictionaryList) ? options.dictionaryList : ['hello', 'w…
34 this.mReservedNames = options?.reservedNames;
/arkcompiler/ets_frontend/es2panda/compiler/core/
DcompilerImpl.cpp39 …:Program *CompilerImpl::Compile(parser::Program *program, const es2panda::CompilerOptions &options, in Compile() argument
42 …bool isTypeExtractorEnabled = ((program->Extension() == ScriptExtension::TS) && options.typeExtrac… in Compile()
43 …CompilerContext context(program->Binder(), options.isDebug, options.isDebuggerEvaluateExpressionMo… in Compile()
44options.mergeAbc, isTypeExtractorEnabled, false, debugInfoSourceFile, pkgName, in Compile()
52 options.typeDtsBuiltin, &localAllocator, &context); in Compile()
75 context.GetEmitter()->FillTypeInfoRecord(&context, options.typeExtractor, in Compile()
76 options.typeExtractor ? extractor_->Recorder()->GetTypeSummaryIndex() : 0, in Compile()
80 return context.GetEmitter()->Finalize(options.dumpDebugInfo, patchFixHelper_); in Compile()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_date_time_format_test.cpp43 JSRuntimeOptions options; in SetUp() local
46 options.SetIcuDataPath(ICU_PATH); in SetUp()
48 options.SetEnableForceGC(true); in SetUp()
49 instance = JSNApi::CreateEcmaVM(options); in SetUp()
212 …JSHandle<JSObject> options = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFu… in HWTEST_F_L0() local
213 options = JSDateTimeFormat::ToDateTimeOptions( in HWTEST_F_L0()
214 thread, JSHandle<JSTaggedValue>::Cast(options), RequiredOption::ANY, DefaultsOption::ALL); in HWTEST_F_L0()
220 … thread, dtf, JSHandle<JSTaggedValue>::Cast(locales), JSHandle<JSTaggedValue>::Cast(options)); in HWTEST_F_L0()
251 …JSHandle<JSObject> options = factory->NewJSObjectByConstructor(JSHandle<JSFunction>(objFun), objFu… in HWTEST_F_L0() local
252 options = JSDateTimeFormat::ToDateTimeOptions( in HWTEST_F_L0()
[all …]
/arkcompiler/runtime_core/tests/checked/verify_aot_tests/
Dverify_aot_test.pa25 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch…
26 #! RUN options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc", entry: "Ver…
31 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch…
32 #! RUN options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc", entry: "Ver…
37 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch…
38 #! RUN options: "--panda-files=../../verify_aot_tests_file2.checked/test.abc", entry: "Ver…
43 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch…
44 #! RUN options: "--panda-files=../../verify_aot_tests_file2.checked/test.abc", entry: "Ver…
49 #! RUN_PAOC options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc --paoc-use-ch…
50 #! RUN options: "--panda-files=../../verify_aot_tests_file1.checked/test.abc", entry: "Ver…
[all …]
/arkcompiler/ets_runtime/ecmascript/
Dlog.cpp213 void Log::Initialize(const JSRuntimeOptions &options) in Initialize() argument
216 if (options.WasSetLogFatal()) { in Initialize()
218 SetLogComponentFromString(options.GetLogFatal()); in Initialize()
219 } else if (options.WasSetLogError()) { in Initialize()
221 SetLogComponentFromString(options.GetLogError()); in Initialize()
222 } else if (options.WasSetLogWarning()) { in Initialize()
224 SetLogComponentFromString(options.GetLogWarning()); in Initialize()
225 } else if (options.WasSetLogInfo()) { in Initialize()
227 SetLogComponentFromString(options.GetLogInfo()); in Initialize()
228 } else if (options.WasSetLogDebug()) { in Initialize()
[all …]
/arkcompiler/ets_frontend/test/scripts/sdk_test/
Dresult.py28 import options
111 if not options.arguments.compile_mode in ['all', 'full']:
117 if options.arguments.hap_mode in ['all', 'release']:
118 passed_release = task_info.release_info.result == options.TaskResult.passed
119 if options.arguments.hap_mode == ['all', 'debug']:
120 passed_debug = task_info.debug_info.result == options.TaskResult.passed
126 if not options.arguments.compile_mode in ['all', 'incremental']:
135 if options.arguments.hap_mode in ['all', 'release']:
136 … passed_release = passed_release and inc_task.release_info.result == options.TaskResult.passed
137 if options.arguments.hap_mode == ['all', 'debug']:
[all …]
Dexecution.py31 import options
68 inc_info.result = options.TaskResult.failed
83 inc_info.result = options.TaskResult.failed
153 inc_info.result = options.TaskResult.failed
163 inc_task = options.IncCompilationInfo()
192 file.write(options.configs.get('patch_content').get(
217 patch_content = options.configs.get(
222 patch_content = options.configs.get(
234 patch_lines = options.configs.get(
353 test_info = options.CompilationInfo()
[all …]
Dpreparation.py29 import options
38 java_home = os.path.join(options.configs.get('deveco_path'), 'jbr')
39 node_js_path = options.configs.get('node_js_path')
53 java_path = os.path.join(options.configs.get('deveco_path'), 'jbr')
58 if not os.path.exists(options.configs.get('node_js_path')):
66 deveco_sdk_path = options.configs.get('deveco_sdk_path')
100 deveco_sdk_path = options.configs.get('deveco_sdk_path')
131 sdk_arg = options.arguments.sdk_path
148 if options.arguments.run_haps:
157 output_log_file = options.configs.get('log_file')
[all …]
/arkcompiler/ets_frontend/merge_abc/src/
Dmain.cpp49 auto options = std::make_unique<Options>(); in Run() local
50 if (!options->Parse(argc, argv)) { in Run()
51 std::cerr << options->ErrorMsg() << std::endl; in Run()
55 std::string protoPathInput = options->protoPathInput(); in Run()
56 std::string protoBinSuffix = options->protoBinSuffix(); in Run()
57 std::string outputFilePath = options->outputFilePath(); in Run()
82 append(options->outputFileName()); in Run()

1234567891011