MCPcopy Create free account
hub / github.com/aiscript-dev/aiscript / getToken

Method getToken

src/parser/streams/token-stream.ts:72–77  ·  view source on GitHub ↗

* カーソル位置にあるトークンを取得します。

()

Source from the content-addressed store, hash-verified

70 * カーソル位置にあるトークンを取得します。
71 */
72 public getToken(): Token {
73 if (this.eof) {
74 return TOKEN(TokenKind.EOF, { line: -1, column: -1 });
75 }
76 return this._token;
77 }
78
79 /**
80 * カーソル位置にあるトークンの種類が指定したトークンの種類と一致するかどうかを示す値を取得します。

Callers 3

getTokenValueMethod · 0.95
getTokenKindMethod · 0.95
getPosMethod · 0.95

Calls 1

TOKENFunction · 0.85

Tested by

no test coverage detected