tlang/source/tlang
Tristan B. Velloza Kildaire 990b8a7d87 Parser
- Added a new default parameter to `parseTypedDeclaration()` which is `onlyType=false`. If one sets this to `true` then we will parse the type till the identifier (what would be it) but stopping on the identifier and returning a bogus `TypedEntity` with a fake name string but with the type string intact
- `parseCast()` now uses `parseTypedDeclaration(onlyType=true)` - this should help us when we want to cast for arrays or pointers (where all that logic is in `parseTypedDeclaration()`).

Test cases

- Added a complex `cast(<expr>)` with a pointer - this should work in upstream `pointers` branch
- File name is `simple_cast_complex_type.t`
2023-04-14 13:32:19 +02:00
..
commandline Commands 2023-04-12 09:02:39 +02:00
compiler Parser 2023-04-14 13:32:19 +02:00
misc Utils 2022-12-12 16:39:57 +02:00
testing Parser 2023-04-14 13:32:19 +02:00
app.d Packaging 2023-02-05 20:21:26 +02:00