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

tbklang / tlang / #1067 / 1
81%
master: 50%

Build:
Build:
LAST BUILD BRANCH: vardec_varass_dependency
DEFAULT BRANCH: master
Ran 27 Mar 2025 06:52PM UTC
Files 54
Run time 1s
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

26 Mar 2025 03:59PM UTC coverage: 81.059% (+0.4%) from 80.68%
#1067.1

push

coveralls-ruby

web-flow
⚡️ Feature: Mixins and embeddings (#69)

* LexerInterface

- Added two new methods

* BasicLexer

- Using `Array` from `std.container.Array` now as it will allow for manipulation more easily

* LexerInterface

- Should take in a `Token` rather

* ArrLexer

- Added required overrides

* BasicLexer

- Added initial implementation for the `removeToken(ulong)` and `insertToken(Token, ulong)` methods
- Added unittests to test the insertion and removal methods

* BasicLexer

- Added check in `insertToken(Token, ulong)` to ensure that we (the `cursor` argument) are inbounds when inserting

* BasicLexer

- Updated unittest to check for out-of-bounds when doing an insertion

* BasicLexer

- `removeToken(ulong)` now does an out-of-bounds check
- Updated unittest to check for out-of-bounds when doing a removal

* LexerInterface

- Marked certain methods as nothrow

* BasicLexer

- These need not be marked with `override`

* BasicLexer

- Just use `currentTokens` directly, renamed it to `tokens` as well

* BasicLexer

- Calling `getTokens()` now returns a copy of the internal state

* BasicLexer

- Cleaned up

* Test cases

- Added `mixins/str.t`

* Test cases

- Added `mixins/file.txt`

* Test cases

- Added `decl.txt`
- Changed the file path for the embedding in `file.t`

* Compiler

- Added two positive test cases for `mixins/str.t` and `mixins/file.t`

* Check

- Added forward and bakwards mappings in for new `mixin` and `embed` keywords

* Parser

- Added `getLexerFor(string)`
- Implemented `mixin` and `embed` keywords for statement-level usage

* Parser

- Expect the terminating symbol but do not consume it

Test cases

- Updated `mixins/decl.txt` and `mixins/str.t`

* Parser

- Don't expect ANYTHING after we chow `mixin/embed`, `(`, `strLit` and `)`, parsing that happens after the caller is returned to will care about that

* Test cases

- Test expression usage

* Test cases

- Added expression test for `mixins/file.t` by using another embedding of the fil... (continued)

4900 of 6045 relevant lines covered (81.06%)

377.0 hits per line

Source Files on job #1067.1
  • Tree
  • List 54
  • Changed 5
  • Source Changed 0
  • Coverage Changed 5
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1067
  • b8e4d343 on github
  • Prev Job for on feature/alias_v2 (##1062.1)
  • Next Job for on feature/alias_v2 (##1068.1)
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