Home
last modified time | relevance | path

Searched refs:IteratorType (Results 1 – 13 of 13) sorted by relevance

/arkcompiler/ets_frontend/ts2panda/src/statement/
DforOfStatement.ts28 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) {
DtryStatement.ts28 import { IteratorRecord, IteratorType } from "./forOfStatement";
332 if (this.iterator.getType() === IteratorType.Async) {
362 if (iterator.getType() === IteratorType.Async) {
/arkcompiler/ets_frontend/es2panda/compiler/base/
Diterators.h29 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_;
Diterators.cpp26 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/
Diterator.ts16 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/
Dsmall_vector.h97 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/
DfunctionBuilder.h30 enum class IteratorType; variable
73 virtual IteratorType GeneratorKind() const;
DfunctionBuilder.cpp33 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()
DasyncGeneratorFunctionBuilder.h48 IteratorType GeneratorKind() const override;
DasyncGeneratorFunctionBuilder.cpp139 IteratorType AsyncGeneratorFunctionBuilder::GeneratorKind() const in GeneratorKind()
141 return IteratorType::ASYNC; in GeneratorKind()
/arkcompiler/ets_frontend/es2panda/ir/statements/
DforOfStatement.cpp75 auto iterator_type = isAwait_ ? compiler::IteratorType::ASYNC : compiler::IteratorType::SYNC; in Compile()
/arkcompiler/ets_frontend/ts2panda/src/function/
DgeneratorFunctionBuilder.ts26 import { IteratorRecord, IteratorType, getIteratorRecord } from "../statement/forOfStatement";
102 let type: IteratorType = IteratorType.Normal;
DasyncGeneratorFunctionBuilder.ts28 import { IteratorType } from "../statement/forOfStatement";
135 node, IteratorType.Async, this);