Home
last modified time | relevance | path

Searched refs:method (Results 1 – 25 of 475) sorted by relevance

12345678910>>...19

/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DcontextuallyTypedByDiscriminableUnion.ts23 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 …]
DsuperMethodCall.ts22 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?.();
DcontextualTypeShouldBeLiteral.ts24 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 …]
DinferentialTypingObjectLiteralMethod1.ts22 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 } });
DsuperCallParameterContextualTyping3.ts22 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");
DinferentialTypingObjectLiteralMethod2.ts25 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 } });
DgenericIndexedAccessMethodIntersectionCanBeAccessed.ts34 ….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]");
DinterfaceClassMerging.ts22 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");
DjsFileCompilationClassMethodContainingArrowFunction.ts22 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");
DtypeGuardsObjectMethods.ts39 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 …]
DprivateNameMethodCallExpression.ts22 #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");
DthisMethodCall.ts22 method?() {}
24 this.method?.();
25 AssertType(this.method?.(), "union");
26 AssertType(this.method, "union");
DbaseTypeAfterDerivedType.ts23 method(...args: any[]): void;
27 method(...args: any[]): void; method
31 method(...args: any[]): void { } method in Derived2
35 method(...args: any[]): void; method
DjsDeclarationsClassStaticMethodAugmentation.ts22 static method() { }
25 Clazz.method.prop = 5;
26 AssertType(Clazz.method.prop = 5, "int");
27 AssertType(Clazz.method.prop, "number");
DtypeArgumentInferenceApparentType1.ts21 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");
DprivateNameStaticMethodCallExpression.ts22 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");
DclassConstructorAccessibility4.ts24 method() {
26 method() {
41 method() { method in D
43 method() {
/arkcompiler/ets_frontend/es2panda/test/compiler/js/
Dreserved-words-as-method-name-expected.txt1 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/
Djs_debugger.cpp75 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 …]
Dnotification_manager.h34 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/
Druntime_interface.h74 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/
Druntime_adapter.h40 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/
Ddebugger_params_test.cpp75 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/
Dwrapperclassfunc.js24 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/
Ddebug_info_extractor.cpp257 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 …]

12345678910>>...19