Expand description
What kind of code the cursor is in, worked out from the tokens before it. Code being typed rarely parses, so this reads tokens rather than the syntax tree: it only needs to know which blocks, calls and brackets are open and what came last.
StructsΒ§
- Call π
- The call whose argument list the cursor is directly in.
- Context π
- The cursorβs context, and the call being written around it, if any.
- Scanner π
EnumsΒ§
- Block
Kind π - What a
{ β¦ }holds, which decides the statements allowed in it. - Frame π
- Slot π
- Where the cursor is, and so what may be typed there.
ConstantsΒ§
- LOOK_
BACK π - How many recent tokens the scanner keeps: enough for
for index, item.
FunctionsΒ§
- at π
- call_
slot π - declares_
name π - ends_
value π - expression_
slot π - After an operator or opening bracket an expression may start; after a value, a name
being declared or a member
., nothing from the completion list fits. - trailing_
block π - What the block after a call to
calleeholds.