• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

AfterShip / clickhouse-sql-parser / 27321031285
53%
master: 53%

Build:
Build:
LAST BUILD BRANCH: lexer-naming
DEFAULT BRANCH: master
Ran 11 Jun 2026 03:06AM UTC
Jobs 1
Files 17
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Jun 2026 03:05AM UTC coverage: 52.012%. Remained the same
27321031285

Pull #277

github

git-hulk
Rename lexer state to match what it holds

l.lastToken and p.last() actually hold the *current* lookahead token -
the one the parser is looking at but has not consumed - not a
previously-consumed token. Likewise l.current held the input byte
offset, not a token. Rename for accuracy, no behavior change:

- lexerState.current (int)    -> offset
- lexerState.lastToken        -> current
- Parser.last()               -> cur()
- Parser.lastTokenKind()      -> curTokenKind()
- Parser.lastTokenString()    -> curTokenString()
- local `lastToken` vars      -> curToken (parser files)

The one genuinely-previous token - the local in Lexer.consumeToken used
to disambiguate unary +/- - is named prevToken.

Also give TokenKindDot its missing TokenKind type annotation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pull Request #277: Rename lexer state to match what it holds

160 of 231 new or added lines in 8 files covered. (69.26%)

1 existing line in 1 file now uncovered.

8364 of 16081 relevant lines covered (52.01%)

3001.37 hits per line

Uncovered Changes

Lines Coverage ∆ File
21
50.98
0.0% parser/parse_system.go
15
68.8
0.0% parser/parser_table.go
12
75.38
0.0% parser/parser_query.go
10
76.08
0.0% parser/parser_column.go
5
83.28
0.0% parser/parser_common.go
4
73.22
0.0% parser/parser_alter.go
4
66.78
0.0% parser/parser_view.go

Coverage Regressions

Lines Coverage ∆ File
1
83.28
0.0% parser/parser_common.go
Jobs
ID Job ID Ran Files Coverage
1 27321031285.1 11 Jun 2026 03:06AM UTC 17
52.01
GitHub Action Run
Source Files on build 27321031285
  • Tree
  • List 17
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Pull Request #277
  • PR Base - master (#27279412055)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc