mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
〚Positions: [1733, 1735]〛
|
|
【TS: JSDoc [1611, 1733)】
|
|
《Go: JSDoc [1607, 1733)》
|
|
64 │ },
|
|
65 │ );
|
|
66 │}《
|
|
67 │
|
|
68 │【/**
|
|
69 │ * Tries to parse something into either "top-level" statements, or into blocks
|
|
70 │ * of class-context definitions.
|
|
71 │ */】》〚
|
|
72 │f〛unction parse(sourceFile: SourceFile, content: string): NodeArray<Node> {
|
|
73 │ // We're going to speculatively parse different kinds of contexts to see
|
|
|
|
|
|
〚Positions: [1736, 1744]〛
|
|
【TS: FunctionKeyword [1607, 1743)】
|
|
《Go: FunctionKeyword [1733, 1743)》
|
|
64 │ },
|
|
65 │ );
|
|
66 │}【
|
|
67 │
|
|
68 │/**
|
|
69 │ * Tries to parse something into either "top-level" statements, or into blocks
|
|
70 │ * of class-context definitions.
|
|
71 │ */《
|
|
72 │f〚unction】》 p〛arse(sourceFile: SourceFile, content: string): NodeArray<Node> {
|
|
73 │ // We're going to speculatively parse different kinds of contexts to see
|
|
74 │ // which one makes the most sense, and grab the NodeArray from there. Do
|