26 lines
849 B
Text
26 lines
849 B
Text
=== tests/cases/conformance/es6/for-ofStatements/for-of26.ts ===
|
|
var x: any;
|
|
>x : Symbol(x, Decl(for-of26.ts, 0, 3))
|
|
|
|
for (var v of new StringIterator) { }
|
|
>v : Symbol(v, Decl(for-of26.ts, 1, 8))
|
|
>StringIterator : Symbol(StringIterator, Decl(for-of26.ts, 1, 37))
|
|
|
|
class StringIterator {
|
|
>StringIterator : Symbol(StringIterator, Decl(for-of26.ts, 1, 37))
|
|
|
|
next() {
|
|
>next : Symbol(next, Decl(for-of26.ts, 3, 22))
|
|
|
|
return x;
|
|
>x : Symbol(x, Decl(for-of26.ts, 0, 3))
|
|
}
|
|
[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(StringIterator, Decl(for-of26.ts, 1, 37))
|
|
}
|
|
}
|