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

Method expect

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

* カーソル位置にあるトークンの種類が指定したトークンの種類と一致することを確認します。 * 一致しなかった場合には文法エラーを発生させます。

(kind: TokenKind)

Source from the content-addressed store, hash-verified

46 * 一致しなかった場合には文法エラーを発生させます。
47 */
48 expect(kind: TokenKind): void;
49}
50
51/**

Callers 15

parseParamsFunction · 0.65
parseBlockFunction · 0.65
parseLabelFunction · 0.65
parseNamespaceFunction · 0.65
parseMetaFunction · 0.65
parseVarDefFunction · 0.65
parseFnDefFunction · 0.65
parseOutFunction · 0.65
parseStatementWithLabelFunction · 0.65
parseEachFunction · 0.65
parseForFunction · 0.65
parseReturnFunction · 0.65

Implementers 2

Scannersrc/parser/scanner.ts
TokenStreamsrc/parser/streams/token-stream.ts

Calls

no outgoing calls

Tested by

no test coverage detected