mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
287 lines
6.9 KiB
Plaintext
287 lines
6.9 KiB
Plaintext
// === SignatureHelp ===
|
|
=== /signatureHelpIteratorNext.ts ===
|
|
// declare const iterator: Iterator<string, void, number>;
|
|
//
|
|
// iterator.next();
|
|
// ^
|
|
// | ----------------------------------------------------------------------
|
|
// | next(): IteratorResult<string, void>
|
|
// | ----------------------------------------------------------------------
|
|
// iterator.next( 0);
|
|
// ^
|
|
// | ----------------------------------------------------------------------
|
|
// | next(**value: number**): IteratorResult<string, void>
|
|
// | ----------------------------------------------------------------------
|
|
//
|
|
// declare const generator: Generator<string, void, number>;
|
|
//
|
|
// generator.next();
|
|
// ^
|
|
// | ----------------------------------------------------------------------
|
|
// | next(): IteratorResult<string, void>
|
|
// | ----------------------------------------------------------------------
|
|
// generator.next( 0);
|
|
// ^
|
|
// | ----------------------------------------------------------------------
|
|
// | next(**value: number**): IteratorResult<string, void>
|
|
// | ----------------------------------------------------------------------
|
|
//
|
|
// declare const asyncIterator: AsyncIterator<string, void, number>;
|
|
//
|
|
// asyncIterator.next();
|
|
// ^
|
|
// | ----------------------------------------------------------------------
|
|
// | next(): Promise<IteratorResult<string, void>>
|
|
// | ----------------------------------------------------------------------
|
|
// asyncIterator.next( 0);
|
|
// ^
|
|
// | ----------------------------------------------------------------------
|
|
// | next(**value: number**): Promise<IteratorResult<string, void>>
|
|
// | ----------------------------------------------------------------------
|
|
//
|
|
// declare const asyncGenerator: AsyncGenerator<string, void, number>;
|
|
//
|
|
// asyncGenerator.next();
|
|
// ^
|
|
// | ----------------------------------------------------------------------
|
|
// | next(): Promise<IteratorResult<string, void>>
|
|
// | ----------------------------------------------------------------------
|
|
// asyncGenerator.next( 0);
|
|
// ^
|
|
// | ----------------------------------------------------------------------
|
|
// | next(**value: number**): Promise<IteratorResult<string, void>>
|
|
// | ----------------------------------------------------------------------
|
|
[
|
|
{
|
|
"marker": {
|
|
"Position": 71,
|
|
"LSPosition": {
|
|
"line": 2,
|
|
"character": 14
|
|
},
|
|
"Name": "1",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"signatures": [
|
|
{
|
|
"label": "next(): IteratorResult<string, void>",
|
|
"parameters": []
|
|
},
|
|
{
|
|
"label": "next(value: number): IteratorResult<string, void>",
|
|
"parameters": [
|
|
{
|
|
"label": "value: number"
|
|
}
|
|
],
|
|
"activeParameter": 0
|
|
}
|
|
],
|
|
"activeSignature": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"Position": 88,
|
|
"LSPosition": {
|
|
"line": 3,
|
|
"character": 14
|
|
},
|
|
"Name": "2",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"signatures": [
|
|
{
|
|
"label": "next(): IteratorResult<string, void>",
|
|
"parameters": []
|
|
},
|
|
{
|
|
"label": "next(value: number): IteratorResult<string, void>",
|
|
"parameters": [
|
|
{
|
|
"label": "value: number"
|
|
}
|
|
],
|
|
"activeParameter": 0
|
|
}
|
|
],
|
|
"activeSignature": 1
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"Position": 168,
|
|
"LSPosition": {
|
|
"line": 7,
|
|
"character": 15
|
|
},
|
|
"Name": "3",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"signatures": [
|
|
{
|
|
"label": "next(): IteratorResult<string, void>",
|
|
"parameters": []
|
|
},
|
|
{
|
|
"label": "next(value: number): IteratorResult<string, void>",
|
|
"parameters": [
|
|
{
|
|
"label": "value: number"
|
|
}
|
|
],
|
|
"activeParameter": 0
|
|
}
|
|
],
|
|
"activeSignature": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"Position": 186,
|
|
"LSPosition": {
|
|
"line": 8,
|
|
"character": 15
|
|
},
|
|
"Name": "4",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"signatures": [
|
|
{
|
|
"label": "next(): IteratorResult<string, void>",
|
|
"parameters": []
|
|
},
|
|
{
|
|
"label": "next(value: number): IteratorResult<string, void>",
|
|
"parameters": [
|
|
{
|
|
"label": "value: number"
|
|
}
|
|
],
|
|
"activeParameter": 0
|
|
}
|
|
],
|
|
"activeSignature": 1
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"Position": 278,
|
|
"LSPosition": {
|
|
"line": 12,
|
|
"character": 19
|
|
},
|
|
"Name": "5",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"signatures": [
|
|
{
|
|
"label": "next(): Promise<IteratorResult<string, void>>",
|
|
"parameters": []
|
|
},
|
|
{
|
|
"label": "next(value: number): Promise<IteratorResult<string, void>>",
|
|
"parameters": [
|
|
{
|
|
"label": "value: number"
|
|
}
|
|
],
|
|
"activeParameter": 0
|
|
}
|
|
],
|
|
"activeSignature": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"Position": 300,
|
|
"LSPosition": {
|
|
"line": 13,
|
|
"character": 19
|
|
},
|
|
"Name": "6",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"signatures": [
|
|
{
|
|
"label": "next(): Promise<IteratorResult<string, void>>",
|
|
"parameters": []
|
|
},
|
|
{
|
|
"label": "next(value: number): Promise<IteratorResult<string, void>>",
|
|
"parameters": [
|
|
{
|
|
"label": "value: number"
|
|
}
|
|
],
|
|
"activeParameter": 0
|
|
}
|
|
],
|
|
"activeSignature": 1
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"Position": 395,
|
|
"LSPosition": {
|
|
"line": 17,
|
|
"character": 20
|
|
},
|
|
"Name": "7",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"signatures": [
|
|
{
|
|
"label": "next(): Promise<IteratorResult<string, void>>",
|
|
"parameters": []
|
|
},
|
|
{
|
|
"label": "next(value: number): Promise<IteratorResult<string, void>>",
|
|
"parameters": [
|
|
{
|
|
"label": "value: number"
|
|
}
|
|
],
|
|
"activeParameter": 0
|
|
}
|
|
],
|
|
"activeSignature": 0
|
|
}
|
|
},
|
|
{
|
|
"marker": {
|
|
"Position": 418,
|
|
"LSPosition": {
|
|
"line": 18,
|
|
"character": 20
|
|
},
|
|
"Name": "8",
|
|
"Data": {}
|
|
},
|
|
"item": {
|
|
"signatures": [
|
|
{
|
|
"label": "next(): Promise<IteratorResult<string, void>>",
|
|
"parameters": []
|
|
},
|
|
{
|
|
"label": "next(value: number): Promise<IteratorResult<string, void>>",
|
|
"parameters": [
|
|
{
|
|
"label": "value: number"
|
|
}
|
|
],
|
|
"activeParameter": 0
|
|
}
|
|
],
|
|
"activeSignature": 1
|
|
}
|
|
}
|
|
] |