Home
last modified time | relevance | path

Searched refs:other (Results 1 – 25 of 203) sorted by relevance

123456789

/arkcompiler/ets_frontend/es2panda/parser/program/
Dprogram.cpp32 Program::Program(Program &&other) in Program() argument
33 : allocator_(std::move(other.allocator_)), in Program()
34 binder_(other.binder_), in Program()
35 ast_(other.ast_), in Program()
36 sourceCode_(other.sourceCode_), in Program()
37 sourceFile_(other.sourceFile_), in Program()
38 recordName_(other.recordName_), in Program()
39 formatedRecordName_(other.formatedRecordName_), in Program()
40 kind_(other.kind_), in Program()
41 extension_(other.extension_), in Program()
[all …]
/arkcompiler/ets_runtime/ecmascript/mem/
Dslots.h82 bool operator<(const ObjectSlot &other) const
84 return slotAddress_ < other.slotAddress_;
86 bool operator<=(const ObjectSlot &other) const
88 return slotAddress_ <= other.slotAddress_;
90 bool operator>(const ObjectSlot &other) const
92 return slotAddress_ > other.slotAddress_;
94 bool operator>=(const ObjectSlot &other) const
96 return slotAddress_ >= other.slotAddress_;
98 bool operator==(const ObjectSlot &other) const
100 return slotAddress_ == other.slotAddress_;
[all …]
Dchunk_allocator.h36 using other = ChunkAllocator<U>; member
45 explicit ChunkAllocator(const ChunkAllocator<U> &other) : chunk_(other.chunk_) in ChunkAllocator() argument
53 ChunkAllocator(ChunkAllocator &&other) noexcept in ChunkAllocator() argument
55 chunk_ = other.chunk_; in ChunkAllocator()
56 other.chunk_ = nullptr; in ChunkAllocator()
58 ChunkAllocator &operator=(ChunkAllocator &&other) noexcept
60 chunk_ = other.chunk_;
61 other.chunk_ = nullptr;
107 bool operator==(ChunkAllocator const &other) const
109 return chunk_ == other.chunk_;
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/
DmoduleResolutionWithRequireAndImport.ts25 AssertType(a, "typeof import("/other")");
36 const { other }: { other: string } = require('./other'); constant
37 AssertType(other, "string");
38 AssertType(other, "string");
47 export const other = 123;
48 AssertType(other, "int");
DasyncArrowFunctionCapturesArguments_es6.ts23 function other() {
24 AssertType(other, "() => void");
27 let fn = async () => await other.apply(this, arguments);
29 AssertType(async () => await other.apply(this, arguments), "() => Promise<any>");
30 AssertType(await other.apply(this, arguments), "any");
31 AssertType(other.apply(this, arguments), "any");
32 AssertType(other.apply, "(Function, any, ?any) => any");
DasyncArrowFunctionCapturesArguments_es2017.ts23 function other() {
24 AssertType(other, "() => void");
27 let fn = async () => await other.apply(this, arguments);
29 AssertType(async () => await other.apply(this, arguments), "() => Promise<any>");
30 AssertType(await other.apply(this, arguments), "any");
31 AssertType(other.apply(this, arguments), "any");
32 AssertType(other.apply, "(Function, any, ?any) => any");
DclassExtendingClass.ts24 static other() { }
47 let r4 = D.other();
49 AssertType(D.other(), "void");
50 AssertType(D.other, "() => void");
55 static other<T>(x: T) { } method in C2
79 let r8 = D2.other(1);
81 AssertType(D2.other(1), "void");
82 AssertType(D2.other, "<T>(T) => void");
DmoduleResolutionWithRequire.ts31 const { other }: { other: string } = require('./other'); constant
32 AssertType(other, "string");
33 AssertType(other, "string");
DprivateInstanceVisibility.ts63 clone(other: C) {
64 this.x = other.x;
65 AssertType(this.x = other.x, "number");
68 AssertType(other.x, "number");
DintersectionTypeMembers.ts90 nested: { doublyNested: { f: string; }, other: {g: number } };
94 …: 'yes', f: 'no' }, different: { e: 12 }, other: { g: 101 } }},…
98 …: 'yes', f: 'no' }, different: { e: 12 }, other: { g: 101 } }, …
119 other: { g: 101
120 AssertType(other, "{ g: number; }");
142 … h: 'affirmative' }, different: { e: 12 }, other: { g: 101 } }},…
146 … h: 'affirmative' }, different: { e: 12 }, other: { g: 101 } }, …
175 other: { g: 101
176 AssertType(other, "{ g: number; }");
DobjectRestAssignment.ts28 let other: number; variable
29 AssertType(other, "number");
41 ({x: { ka, ...nested }, y: other, ...rest} = complex);
42 AssertType(({x: { ka, ...nested }, y: other, ...rest} = complex), "{ x: { ka: any; ki: any; }; y: n…
43 AssertType({x: { ka, ...nested }, y: other, ...rest} = complex, "{ x: { ka: any; ki: any; }; y: num…
44 AssertType({x: { ka, ...nested }, y: other, ...rest}, "{ x: { ki: any; ka: any; }; y: number; }");
50 AssertType(other, "number");
/arkcompiler/runtime_core/libpandabase/mem/
Dmem_range.h48 bool IsIntersect(const MemRange &other) const in IsIntersect() argument
50 return ((end_address_ >= other.start_address_) && (end_address_ <= other.end_address_)) || in IsIntersect()
51 … ((start_address_ >= other.start_address_) && (start_address_ <= other.end_address_)) || in IsIntersect()
52 ((start_address_ < other.start_address_) && (end_address_ > other.end_address_)); in IsIntersect()
55 bool Contains(const MemRange &other) const in Contains() argument
57 return start_address_ <= other.start_address_ && end_address_ >= other.end_address_; in Contains()
Darena_allocator_stl_adapter.h36 using other = ArenaAllocatorAdapter<U, use_oom_handler>; member
45 …locatorAdapter(const ArenaAllocatorAdapter<U, use_oom_handler> &other) : allocator_(other.allocato… in ArenaAllocatorAdapter() argument
74 using other = ArenaAllocatorAdapter<U, use_oom_handler>; member
83 …locatorAdapter(const ArenaAllocatorAdapter<U, use_oom_handler> &other) : allocator_(other.allocato… in ArenaAllocatorAdapter() argument
88 ArenaAllocatorAdapter(ArenaAllocatorAdapter &&other) noexcept in ArenaAllocatorAdapter() argument
90 allocator_ = other.allocator_; in ArenaAllocatorAdapter()
91 other.allocator_ = nullptr; in ArenaAllocatorAdapter()
93 ArenaAllocatorAdapter &operator=(ArenaAllocatorAdapter &&other) noexcept
95 allocator_ = other.allocator_;
96 other.allocator_ = nullptr;
Dobject_pointer.h81 ALWAYS_INLINE bool operator==(const ObjectPointer &other) const noexcept
83 return object_ == other.object_;
86 ALWAYS_INLINE bool operator!=(const ObjectPointer &other) const noexcept
88 return object_ != other.object_;
91 ALWAYS_INLINE bool operator==(Object *other) const noexcept
93 return ToObjectPtr(object_) == other;
96 ALWAYS_INLINE bool operator!=(Object *other) const noexcept
98 return ToObjectPtr(object_) != other;
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/declarationEmitWithDefaultAsComputedName/
Dmain.ts21 import other from "./other";
24 AssertType({ [other.name]: 1,}, "{ foo: number; }");
26 [other.name]: 1,
27 AssertType([other.name], "number");
28 AssertType(other.name, "string");
/arkcompiler/runtime_core/libpandabase/utils/
Dregmask.h179 constexpr Self operator&(Self other) const
181 return Self(GetValue() & other.GetValue());
184 constexpr Self operator|(Self other) const
186 return Self(GetValue() | other.GetValue());
189 constexpr Self operator^(Self other) const
191 return Self(GetValue() ^ other.GetValue());
194 constexpr Self operator&=(Self other)
196 value_ &= other.GetValue();
200 constexpr Self operator|=(Self other)
202 value_ |= other.GetValue();
[all …]
Dsmall_vector.h235 SmallVector(const SmallVector &other) : allocator_(other.allocator_) in SmallVector() argument
237 if (other.IsStatic()) { in SmallVector()
239 buffer_.size = other.buffer_.size; in SmallVector()
243 new (&buffer_.data[i]) T(other.buffer_.data[i]); in SmallVector()
247 new (&vector_) VectorType(other.vector_); in SmallVector()
251 SmallVector(SmallVector &&other) noexcept : allocator_(other.allocator_) in SmallVector() argument
253 if (other.IsStatic()) { in SmallVector()
255 buffer_.size = other.buffer_.size; in SmallVector()
259 new (&buffer_.data[i]) T(std::move(other.buffer_.data[i])); in SmallVector()
263 new (&vector_) VectorType(std::move(other.vector_)); in SmallVector()
[all …]
Dbit_vector.h62 BitReference &operator=(const BitReference &other)
64 if (&other != this) {
65 *this = bool(other);
70 BitReference &operator=(BitReference &&other) noexcept
72 *this = bool(other);
80 bool operator==(const BitReference &other) const
82 return bool(*this) == bool(other);
84 bool operator<(const BitReference &other) const
86 return !bool(*this) && bool(other);
110 bool operator==(const BitVectorIterator<_IsConst> &other) const
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/jsDeclarationsFunctionLikeClasses2/
Dsource.js39other) { if (other.storage.length !== this.storage.length) { throw new Error(`Do… argument
40other) { if (other.storage.length !== this.storage.length) { throw new Error(`Do… argument
45 dot(other) {
47 AssertType(other, "Vec");
49 if (other.storage.length !== this.storage.length) {
50 AssertType(other.storage.length !== this.storage.length, "boolean");
51 AssertType(other.storage.length, "number");
52 AssertType(other.storage, "number[]");
77 sum += (this.storage[i] * other.storage[i]);
78 AssertType(sum += (this.storage[i] * other.storage[i]), "number");
[all …]
/arkcompiler/ets_frontend/es2panda/typescript/types/
Dsignature.h33 …SignatureInfo(const SignatureInfo *other, ArenaAllocator *allocator) : params(allocator->Adapter()) in SignatureInfo() argument
35 for (auto *it : other->params) { in SignatureInfo()
39 minArgCount = other->minArgCount; in SignatureInfo()
41 if (other->restVar) { in SignatureInfo()
42 restVar = other->restVar->Copy(allocator, other->restVar->Declaration()); in SignatureInfo()
118 void Identical(TypeRelation *relation, Signature *other);
Dsignature.cpp76 void Signature::Identical(TypeRelation *relation, Signature *other) in Identical() argument
78 if (signatureInfo_->minArgCount != other->MinArgCount() || in Identical()
79 signatureInfo_->params.size() != other->Params().size()) { in Identical()
84 relation->IsIdenticalTo(returnType_, other->ReturnType()); in Identical()
88 … relation->IsIdenticalTo(signatureInfo_->params[i]->TsType(), other->Params()[i]->TsType()); in Identical()
94 if (signatureInfo_->restVar && other->RestVar()) { in Identical()
95 relation->IsIdenticalTo(signatureInfo_->restVar->TsType(), other->RestVar()->TsType()); in Identical()
96 …} else if ((signatureInfo_->restVar && !other->RestVar()) || (!signatureInfo_->restVar && other->R… in Identical()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dcall_signature.h88 CallSignature(CallSignature const &other) in CallSignature() argument
90 name_ = other.name_; in CallSignature()
91 paramCounter_ = other.paramCounter_; in CallSignature()
92 order_ = other.order_; in CallSignature()
93 id_ = other.id_; in CallSignature()
94 returnType_ = other.returnType_; in CallSignature()
95 constructor_ = other.constructor_; in CallSignature()
96 if (paramCounter_ > 0 && other.paramsType_ != nullptr) { in CallSignature()
99 (*paramsType_)[i] = other.GetParametersType()[i]; in CallSignature()
102 kind_ = other.kind_; in CallSignature()
[all …]
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/elidedJSImport2modulecommonjs/
Dindex.js22 import * as other from "./other.js";
30 const y = other.Foo();
32 AssertType(other.Foo(), "error");
33 AssertType(other.Foo, "error");
/arkcompiler/ets_runtime/test/typeinfer/automatedcases/elidedJSImport2modulees2022/
Dindex.js22 import * as other from "./other.js";
30 const y = other.Foo();
32 AssertType(other.Foo(), "error");
33 AssertType(other.Foo, "error");
/arkcompiler/runtime_core/libpandabase/os/
Dmem.h188 MapPtr(MapPtr &&other) noexcept in MapPtr() argument
190 ptr_ = other.ptr_; in MapPtr()
191 page_offset_ = other.page_offset_; in MapPtr()
192 size_ = other.size_; in MapPtr()
193 deleter_ = other.deleter_; in MapPtr()
194 other.ptr_ = nullptr; in MapPtr()
195 other.deleter_ = nullptr; in MapPtr()
198 MapPtr &operator=(MapPtr &&other) noexcept
200 ptr_ = other.ptr_;
201 page_offset_ = other.page_offset_;
[all …]

123456789