Home
last modified time | relevance | path

Searched refs:classIndex (Results 1 – 3 of 3) sorted by relevance

/arkcompiler/ets_frontend/ts2panda/src/
DtypeRecorder.ts125 public setClass2InstanceMap(classIndex: number, instanceIndex: number): void {
126 this.class2InstanceMap.set(classIndex, instanceIndex);
129 public hasClass2InstanceMap(classIndex: number): boolean {
130 return this.class2InstanceMap.has(classIndex);
133 public getClass2InstanceMap(classIndex: number): number {
134 return this.class2InstanceMap.get(classIndex);
/arkcompiler/ets_frontend/es2panda/typescript/extractor/
DtypeRecorder.cpp219 int64_t TypeRecorder::GetClassInst(int64_t classIndex) const in GetClassInst()
221 return FindValue(classInst_, classIndex, PRIMITIVETYPE_ANY); in GetClassInst()
224 void TypeRecorder::SetClassInst(int64_t classIndex, int64_t instIndex) in SetClassInst() argument
226 if (classIndex == PRIMITIVETYPE_ANY) { in SetClassInst()
229 classInst_[classIndex] = instIndex; in SetClassInst()
230 ASSERT(GetClassInst(classIndex) == instIndex); in SetClassInst()
240 void TypeRecorder::SetClassType(int64_t instIndex, int64_t classIndex) in SetClassType() argument
245 classType_[instIndex] = classIndex; in SetClassType()
246 ASSERT(GetClassType(instIndex) == classIndex); in SetClassType()
DtypeRecorder.h84 int64_t GetClassInst(int64_t classIndex) const;
85 void SetClassInst(int64_t classIndex, int64_t instIndex);
88 void SetClassType(int64_t instIndex, int64_t classIndex);