Searched refs:IteratorType (Results 1 – 13 of 13) sorted by relevance
/arkcompiler/ets_frontend/ts2panda/src/statement/ |
D | forOfStatement.ts | 28 export enum IteratorType { Normal, Async } enum 31 private type: IteratorType; 35 constructor(object: VReg, nextMethod: VReg, type: IteratorType = IteratorType.Normal) { 41 getType(): IteratorType { 71 let type: IteratorType = stmt.awaitModifier ? IteratorType.Async : IteratorType.Normal; 110 …dagen: PandaGen, node: ts.Node, nextMethod: VReg, object: VReg, type: IteratorType): IteratorRecor… 120 function getIterator(pandagen: PandaGen, node: ts.Node, type: IteratorType): void { 121 if (type === IteratorType.Async) {
|
D | tryStatement.ts | 28 import { IteratorRecord, IteratorType } from "./forOfStatement"; 332 if (this.iterator.getType() === IteratorType.Async) { 362 if (iterator.getType() === IteratorType.Async) {
|
/arkcompiler/ets_frontend/es2panda/compiler/base/ |
D | iterators.h | 29 enum class IteratorType { SYNC, ASYNC }; enum 33 Iterator(PandaGen *pg, const ir::AstNode *node, IteratorType type); 38 IteratorType Type() const in Type() 75 IteratorType type_;
|
D | iterators.cpp | 26 Iterator::Iterator(PandaGen *pg, const ir::AstNode *node, IteratorType type) in Iterator() 30 if (type_ == IteratorType::ASYNC) { in Iterator() 62 if (type_ == IteratorType::ASYNC) { in Next() 111 if (type_ == IteratorType::ASYNC) { in Close() 147 : Iterator(pg, node, IteratorType::SYNC), done_(pg->AllocReg()), result_(pg->AllocReg()) in DestructuringIterator()
|
/arkcompiler/ets_frontend/ts2panda/src/base/ |
D | iterator.ts | 16 import { IteratorType } from "../statement/forOfStatement"; 34 private kind: IteratorType = IteratorType.Normal; 38 … pandaGen: PandaGen, node: ts.Node, kind ? : IteratorType, funcBuilder ? : FunctionBuilder) { 58 …this.kind === IteratorType.Normal ? pandaGen.getIterator(this.node) : pandaGen.getAsyncIterator(th… 102 if (this.kind === IteratorType.Normal) {
|
/arkcompiler/runtime_core/libpandabase/utils/ |
D | small_vector.h | 97 template <typename IteratorType, bool reverse> 99 …lic std::iterator<std::random_access_iterator_tag, IteratorType, int32_t, IteratorType *, Iterator… 100 IteratorType *Add(difference_type v) in Add() 110 IteratorType *Sub(difference_type v) in Sub() 122 explicit Iterator(IteratorType *param_pointer) : pointer_(param_pointer) {} in Iterator() 124 IteratorType *operator->() 128 IteratorType &operator*() 198 IteratorType *pointer_;
|
/arkcompiler/ets_frontend/es2panda/compiler/function/ |
D | functionBuilder.h | 30 enum class IteratorType; variable 73 virtual IteratorType GeneratorKind() const;
|
D | functionBuilder.cpp | 33 IteratorType FunctionBuilder::GeneratorKind() const in GeneratorKind() 35 return IteratorType::SYNC; in GeneratorKind() 247 if (GeneratorKind() == IteratorType::ASYNC) { in YieldStar() 263 if (GeneratorKind() == IteratorType::ASYNC) { in YieldStar() 284 if (GeneratorKind() == IteratorType::ASYNC) { in YieldStar()
|
D | asyncGeneratorFunctionBuilder.h | 48 IteratorType GeneratorKind() const override;
|
D | asyncGeneratorFunctionBuilder.cpp | 139 IteratorType AsyncGeneratorFunctionBuilder::GeneratorKind() const in GeneratorKind() 141 return IteratorType::ASYNC; in GeneratorKind()
|
/arkcompiler/ets_frontend/es2panda/ir/statements/ |
D | forOfStatement.cpp | 75 auto iterator_type = isAwait_ ? compiler::IteratorType::ASYNC : compiler::IteratorType::SYNC; in Compile()
|
/arkcompiler/ets_frontend/ts2panda/src/function/ |
D | generatorFunctionBuilder.ts | 26 import { IteratorRecord, IteratorType, getIteratorRecord } from "../statement/forOfStatement"; 102 let type: IteratorType = IteratorType.Normal;
|
D | asyncGeneratorFunctionBuilder.ts | 28 import { IteratorType } from "../statement/forOfStatement"; 135 node, IteratorType.Async, this);
|