MCPcopy Index your code
hub / github.com/aiscript-dev/aiscript / constructor

Method constructor

src/parser/scanner.ts:27–34  ·  view source on GitHub ↗
(x: string | CharStream)

Source from the content-addressed store, hash-verified

25 constructor(source: string)
26 constructor(stream: CharStream)
27 constructor(x: string | CharStream) {
28 if (typeof x === 'string') {
29 this.stream = new CharStream(x);
30 } else {
31 this.stream = x;
32 }
33 this._tokens.push(this.readToken());
34 }
35
36 /**
37 * カーソル位置にあるトークンを取得します。

Callers

nothing calls this directly

Calls 1

readTokenMethod · 0.95

Tested by

no test coverage detected