mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
completions: Add types in typeof<> and as<>
This commit is contained in:
parent
d5b2ee3589
commit
e9206809d6
10 changed files with 124 additions and 39 deletions
|
@ -280,9 +280,9 @@ class Err(ParseNode):
|
|||
start_idx -= 1
|
||||
start_token = ctx.tokens[start_idx]
|
||||
|
||||
raise CompileError(
|
||||
self.message, Range(start_token.end, start_token.end, ctx.text)
|
||||
)
|
||||
position = start_token.start if ctx.start == start_idx else start_token.end
|
||||
|
||||
raise CompileError(self.message, Range(position, position, ctx.text))
|
||||
return True
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue