| /arkcompiler/ets_runtime/test/typeinfer/automatedcases/ |
| D | contextuallyTypedByDiscriminableUnion.ts | 23 method(x: string): number; 26 method(x: number): string; 36 item.method(""); 37 AssertType(item.method(""), "number"); 38 AssertType(item.method, "(string) => number"); 42 item.method(42); 43 AssertType(item.method(42), "string"); 44 AssertType(item.method, "(number) => string"); 51 AssertType({ kind: "a", method(a) { return +a; }}, "{ kind: "a"; method(string): nu… 52 AssertType(invoke({ kind: "a", method(a) { return +a; }}), "void"); [all …]
|
| D | superMethodCall.ts | 22 method?() { } 26 method() { method in Derived 27 AssertType(super.method?.(), "union"); 28 AssertType(super.method, "union"); 30 return super.method?.(); 34 AssertType(super.method?.(), "union"); 35 AssertType(super.method, "union"); 37 return super.method?.();
|
| D | contextualTypeShouldBeLiteral.ts | 24 method(): void; 30 method(): void; method 36 AssertType(foo({ type: 'y', value: 'done', method() { this; this.type; … 38 AssertType({ type: 'y', value: 'done', method() { this; this.type; th… 48 method() { 49 AssertType(method, "() => void"); 67 method(): void; method 73 method(): void; method 79 AssertType(foo2({ type2: 'y', value: 'done', method() { this; this.value; … 81 AssertType({ type2: 'y', value: 'done', method() { this; this.value; }}, … [all …]
|
| D | inferentialTypingObjectLiteralMethod1.ts | 22 method(x: T): U; 25 foo("", { method(p1) { 26 AssertType(foo("", { method(p1) { return p1.length } }, { method(p2) { return undefined } }), "stri… 29 AssertType({ method(p1) { return p1.length } }, "{ method(string): number; }"); 30 AssertType(method, "(string) => number"); 33 AssertType({ method(p2) { return undefined } }, "{ method(number): any; }"); 34 AssertType(method, "(number) => any"); 37 return p1.length } }, { method(p2) { return undefined } });
|
| D | superCallParameterContextualTyping3.ts | 22 method(parameter: T): void; 38 AssertType(super({ method(p) { p.length; } }), "void"); 40 AssertType({ method(p) { p.length; } }, "{ method(strin… 42 method(p) { 43 AssertType(method, "(string) => void"); 54 AssertType(super.foo({ method(p) { p.length; } }), "voi… 57 AssertType({ method(p) { p.length; } }, "{ method(strin… 59 method(p) { 60 AssertType(method, "(string) => void");
|
| D | inferentialTypingObjectLiteralMethod2.ts | 25 foo("", { method(p1) { 26 AssertType(foo("", { method(p1) { return p1.length } }, { method(p2) { return undefined } }), "stri… 29 AssertType({ method(p1) { return p1.length } }, "{ method(string): number; }"); 30 AssertType(method, "(string) => number"); 33 AssertType({ method(p2) { return undefined } }, "{ method(number): any; }"); 34 AssertType(method, "(number) => any"); 37 return p1.length } }, { method(p2) { return undefined } });
|
| D | genericIndexedAccessMethodIntersectionCanBeAccessed.ts | 34 ….forEach(key => { const method = (ServiceCtr)[key as keyof T]; const {__$daemonMode,… 41 ….forEach(key => { const method = (ServiceCtr)[key as keyof T]; const {__$daemonMode,… 46 …sertType(key => { const method = (ServiceCtr)[key as keyof T]; const {__$daemonMode,… 49 const method = (ServiceCtr)[key as keyof T]; 50 AssertType(method, "(ExtendedService<T> & Service<T>)[keyof T]"); 57 const {__$daemonMode, __$action, id} = method; 61 AssertType(method, "(ExtendedService<T> & Service<T>)[keyof T]");
|
| D | interfaceClassMerging.ts | 22 method(a: number): string; 32 AssertType(this.method(0), "string"); 33 AssertType(this.method, "(number) => string"); 36 return this.method(0); 41 method(a: number) { method in Bar 54 bar.method(0); 55 AssertType(bar.method(0), "string"); 56 AssertType(bar.method, "(number) => string"); 81 method(a: number): string; variable 82 AssertType(method, "(number) => string");
|
| D | jsFileCompilationClassMethodContainingArrowFunction.ts | 22 method(a) { 23 let x = a => this.method(a); 25 AssertType(a => this.method(a), "(any) => void"); 27 AssertType(this.method(a), "void"); 28 AssertType(this.method, "(any) => void");
|
| D | typeGuardsObjectMethods.ts | 39 method(param: string | number) { 40 AssertType(method, "(union) => union"); 157 strOrNum = typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum); 158 AssertType(strOrNum = typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum), "union"); 160 AssertType(typeof obj1.method(strOrNum) === "string" && obj1.method(strOrNum), "union"); 161 AssertType(typeof obj1.method(strOrNum) === "string", "boolean"); 162 AssertType(typeof obj1.method(strOrNum), "union"); 163 AssertType(obj1.method(strOrNum), "union"); 164 AssertType(obj1.method, "(union) => union"); 167 AssertType(obj1.method(strOrNum), "union"); [all …]
|
| D | privateNameMethodCallExpression.ts | 22 #method() { this.x = 10; }; 31 this.#method(); 32 AssertType(this.#method(), "void"); 33 AssertType(this.#method, "() => void"); 36 const func = this.#method; 38 AssertType(this.#method, "() => void"); 45 new this.#method(); 46 AssertType(new this.#method(), "any"); 47 AssertType(this.#method, "() => void");
|
| D | thisMethodCall.ts | 22 method?() {} 24 this.method?.(); 25 AssertType(this.method?.(), "union"); 26 AssertType(this.method, "union");
|
| D | baseTypeAfterDerivedType.ts | 23 method(...args: any[]): void; 27 method(...args: any[]): void; method 31 method(...args: any[]): void { } method in Derived2 35 method(...args: any[]): void; method
|
| D | jsDeclarationsClassStaticMethodAugmentation.ts | 22 static method() { } 25 Clazz.method.prop = 5; 26 AssertType(Clazz.method.prop = 5, "int"); 27 AssertType(Clazz.method.prop, "number");
|
| D | typeArgumentInferenceApparentType1.ts | 21 function method<T>(iterable: Iterable<T>): T { 25 let res: string = method("test"); 27 AssertType(method("test"), "string"); 28 AssertType(method, "<T>(Iterable<T>) => T");
|
| D | privateNameStaticMethodCallExpression.ts | 22 static #method() { this.x = 10; }; 31 AA.#method(); 32 AssertType(AA.#method(), "void"); 33 AssertType(AA.#method, "() => void"); 35 const func = AA.#method; 37 AssertType(AA.#method, "() => void"); 43 new AA.#method(); 44 AssertType(new AA.#method(), "any"); 45 AssertType(AA.#method, "() => void");
|
| D | classConstructorAccessibility4.ts | 24 method() { 26 method() { 41 method() { method in D 43 method() {
|
| /arkcompiler/ets_frontend/es2panda/test/compiler/js/ |
| D | reserved-words-as-method-name-expected.txt | 1 method break 2 method case 3 method catch 4 method await 5 method async 6 method instanceof 7 method in
|
| /arkcompiler/ets_runtime/ecmascript/debugger/ |
| D | js_debugger.cpp | 75 void JSDebugger::BytecodePcChanged(JSThread *thread, JSHandle<Method> method, uint32_t bcOffset) in BytecodePcChanged() argument 77 ASSERT(bcOffset < method->GetCodeSize() && "code size of current Method less then bcOffset"); in BytecodePcChanged() 78 HandleExceptionThrowEvent(thread, method, bcOffset); in BytecodePcChanged() 81 if (!HandleStep(method, bcOffset)) { in BytecodePcChanged() 82 HandleBreakpoint(method, bcOffset); in BytecodePcChanged() 86 bool JSDebugger::HandleBreakpoint(JSHandle<Method> method, uint32_t bcOffset) in HandleBreakpoint() argument 88 auto breakpoint = FindBreakpoint(method, bcOffset); in HandleBreakpoint() 112 JSPtLocation location {method->GetJSPandaFile(), method->GetMethodId(), bcOffset, in HandleBreakpoint() 119 bool JSDebugger::HandleDebuggerStmt(JSHandle<Method> method, uint32_t bcOffset) in HandleDebuggerStmt() argument 125 JSPtLocation location {method->GetJSPandaFile(), method->GetMethodId(), bcOffset}; in HandleDebuggerStmt() [all …]
|
| D | notification_manager.h | 34 virtual void BytecodePcChanged(JSThread *thread, JSHandle<Method> method, 37 virtual bool HandleDebuggerStmt(JSHandle<Method> method, uint32_t bcOffset) = 0; 41 virtual void MethodEntry(JSHandle<Method> method) = 0; 42 virtual void MethodExit(JSHandle<Method> method) = 0; 68 void BytecodePcChangedEvent(JSThread *thread, Method *method, uint32_t bcOffset) const in BytecodePcChangedEvent() argument 72 JSHandle<Method> methodHandle(thread, method); in BytecodePcChangedEvent() 77 void DebuggerStmtEvent(JSThread *thread, Method *method, uint32_t bcOffset) const in DebuggerStmtEvent() argument 80 JSHandle<Method> methodHandle(thread, method); in DebuggerStmtEvent() 105 void MethodEntryEvent(JSThread *thread, Method *method) const in MethodEntryEvent() argument 108 JSHandle<Method> methodHandle(thread, method); in MethodEntryEvent() [all …]
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | runtime_interface.h | 74 virtual BinaryFilePtr GetBinaryFileForMethod([[maybe_unused]] MethodPtr method) const in GetBinaryFileForMethod() argument 79 virtual MethodId GetMethodId([[maybe_unused]] MethodPtr method) const in GetMethodId() argument 85 virtual size_t GetMethodTotalArgumentsCount([[maybe_unused]] MethodPtr method) const in GetMethodTotalArgumentsCount() argument 93 virtual size_t GetMethodArgumentsCount([[maybe_unused]] MethodPtr method) const in GetMethodArgumentsCount() argument 97 virtual size_t GetMethodRegistersCount([[maybe_unused]] MethodPtr method) const in GetMethodRegistersCount() argument 101 virtual const uint8_t *GetMethodCode([[maybe_unused]] MethodPtr method) const in GetMethodCode() argument 105 virtual size_t GetMethodCodeSize([[maybe_unused]] MethodPtr method) const in GetMethodCodeSize() argument 110 virtual SourceLanguage GetMethodSourceLanguage([[maybe_unused]] MethodPtr method) const in GetMethodSourceLanguage() argument 115 virtual std::string GetClassNameFromMethod([[maybe_unused]] MethodPtr method) const in GetClassNameFromMethod() argument 120 virtual ClassPtr GetClass([[maybe_unused]] MethodPtr method) const in GetClass() argument [all …]
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | runtime_adapter.h | 40 BinaryFilePtr GetBinaryFileForMethod([[maybe_unused]] MethodPtr method) const override in GetBinaryFileForMethod() argument 50 MethodId GetMethodId(MethodPtr method) const override in GetMethodId() argument 52 return static_cast<MethodId>(reinterpret_cast<uintptr_t>(method)); in GetMethodId() 55 size_t GetMethodTotalArgumentsCount(MethodPtr method) const override in GetMethodTotalArgumentsCount() argument 57 panda_file::MethodDataAccessor mda(panda_file_, MethodCast(method)); in GetMethodTotalArgumentsCount() 73 size_t GetMethodRegistersCount(MethodPtr method) const override in GetMethodRegistersCount() argument 75 panda_file::MethodDataAccessor mda(panda_file_, MethodCast(method)); in GetMethodRegistersCount() 83 const uint8_t *GetMethodCode(MethodPtr method) const override in GetMethodCode() argument 85 panda_file::MethodDataAccessor mda(panda_file_, MethodCast(method)); in GetMethodCode() 93 size_t GetMethodCodeSize(MethodPtr method) const override in GetMethodCodeSize() argument [all …]
|
| /arkcompiler/toolchain/tooling/test/ |
| D | debugger_params_test.cpp | 75 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 81 … msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"maxScriptsCacheSize":100}})"; in HWTEST_F_L0() 93 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 99 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"unknownKey":100}})"; in HWTEST_F_L0() 105 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"samplingInterval":true}})"; in HWTEST_F_L0() 110 … msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"samplingInterval":"Test"}})"; in HWTEST_F_L0() 115 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"samplingInterval":1000}})"; in HWTEST_F_L0() 127 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{}})"; in HWTEST_F_L0() 133 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"unknownKey":100}})"; in HWTEST_F_L0() 139 msg = std::string() + R"({"id":0,"method":"Debugger.Test","params":{"trackAllocations":10}})"; in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/test/moduletest/wrapperclassfunc/ |
| D | wrapperclassfunc.js | 24 const method = propertyDesc.value 27 method() 31 var method = Object.getOwnPropertyDescriptor(obj, key) 32 WrapperFunc(method) 33 Object.defineProperty(obj, key, method)
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | debug_info_extractor.cpp | 257 for (const auto &method : methods_) { in GetLineNumberTable() local 258 if (method.method_id == method_id) { in GetLineNumberTable() 259 return method.line_number_table; in GetLineNumberTable() 269 for (const auto &method : methods_) { in GetColumnNumberTable() local 270 if (method.method_id == method_id) { in GetColumnNumberTable() 271 return method.column_number_table; in GetColumnNumberTable() 281 for (const auto &method : methods_) { in GetLocalVariableTable() local 282 if (method.method_id == method_id) { in GetLocalVariableTable() 283 return method.local_variable_table; in GetLocalVariableTable() 293 for (const auto &method : methods_) { in GetParameterInfo() local [all …]
|