37 lines
1 KiB
Text
37 lines
1 KiB
Text
=== tests/cases/conformance/es6/for-ofStatements/for-of21.ts ===
|
|
for (const v of new FooIterator) {
|
|
>v : Symbol(v, Decl(for-of21.ts, 0, 10))
|
|
>FooIterator : Symbol(FooIterator, Decl(for-of21.ts, 4, 13))
|
|
|
|
v;
|
|
>v : Symbol(v, Decl(for-of21.ts, 0, 10))
|
|
}
|
|
|
|
class Foo { }
|
|
>Foo : Symbol(Foo, Decl(for-of21.ts, 2, 1))
|
|
|
|
class FooIterator {
|
|
>FooIterator : Symbol(FooIterator, Decl(for-of21.ts, 4, 13))
|
|
|
|
next() {
|
|
>next : Symbol(next, Decl(for-of21.ts, 5, 19))
|
|
|
|
return {
|
|
value: new Foo,
|
|
>value : Symbol(value, Decl(for-of21.ts, 7, 16))
|
|
>Foo : Symbol(Foo, Decl(for-of21.ts, 2, 1))
|
|
|
|
done: false
|
|
>done : Symbol(done, Decl(for-of21.ts, 8, 27))
|
|
|
|
};
|
|
}
|
|
[Symbol.iterator]() {
|
|
>Symbol.iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
>Symbol : Symbol(Symbol, Decl(lib.d.ts, 1186, 52), Decl(lib.d.ts, 1292, 11))
|
|
>iterator : Symbol(SymbolConstructor.iterator, Decl(lib.d.ts, 1236, 31))
|
|
|
|
return this;
|
|
>this : Symbol(FooIterator, Decl(for-of21.ts, 4, 13))
|
|
}
|
|
}
|