Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/aiscript-dev/aiscript
/ lookahead
Method
lookahead
src/parser/streams/token-stream.ts:42–42 ·
view source on GitHub ↗
* トークンの先読みを行います。カーソル位置は移動されません。
(offset: number)
Source
from the content-addressed store, hash-verified
40
* トークンの先読みを行います。カーソル位置は移動されません。
41
*/
42
lookahead(offset: number): Token;
43
44
/**
45
* カーソル位置にあるトークンの種類が指定したトークンの種類と一致することを確認します。
Callers
4
parser.ts
File · 0.65
parseStatement
Function · 0.65
parseAtom
Function · 0.65
parseIf
Function · 0.65
Implementers
2
Scanner
src/parser/scanner.ts
TokenStream
src/parser/streams/token-stream.ts
Calls
no outgoing calls
Tested by
no test coverage detected