Commit Graph

20 Commits (870ed86afc4023d46ca2433285de20b4c2e5d088)

Author SHA1 Message Date
yuyi 291a1ffd8d
token: rename Position to Pos, rename position() to pos() (#13279) 2022-01-26 12:36:28 +02:00
Delyan Angelov 59357e873d
math: move the `math.mathutil` generic `min`/`max`/`abs` fns to `math` (#13042) 2022-01-05 18:02:20 +02:00
Alexander Medvednikov 59ed4be49a all: update copyright year 2022-01-04 12:21:12 +03:00
yuyi cd0b581445
ast: rename 'table.get_type_symbol()' to 'table.sym()' and more related calls (#12898) 2021-12-19 18:25:18 +02:00
Delyan Angelov a27833ed0d
all: support `volatile field Type` in struct declarations 2021-11-04 09:45:50 +02:00
Enzo 012da10517
ast, fmt: cleanup (#11477) 2021-09-13 04:08:58 +03:00
zakuro 19a43db2de fmt: fix removal of comment before embed in struct (#11384) 2021-09-04 11:02:04 +03:00
Lukas Neubert 1e255d3ab1
fmt: cleanup redundant generic types code (#10990) 2021-07-29 15:21:10 +03:00
Lukas Neubert 5e4cbcc1e3
fmt: unify struct field align code (#10887) 2021-07-23 12:12:09 +03:00
Daniel Däschle ad3835b598
parser: deprecate short struct init (#10842) 2021-07-20 11:17:08 +03:00
Delyan Angelov d56ae2d508
v.fmt: keep comments after struct embeds 2021-06-18 18:42:05 +03:00
Delyan Angelov 000790b112
vfmt: fix eating JS. from `JS.Struct{}` 2021-06-08 21:27:05 +03:00
Delyan Angelov eac1e25c5d
strings: simplify Builder (#10263) 2021-05-31 14:21:06 +03:00
yuyi 431d806dcf
ast, parser: cleanup of generic structs (#9839) 2021-04-22 18:21:01 +03:00
Lukas Neubert cd74273869
fmt: fix import aliases in type declarations (#9483) 2021-03-27 11:33:41 +01:00
zakuro e76c8d5dc0
fmt: use type_to_str_using_alias instead of type_to_str in struct.v (#9431)
* fmt: use type_to_str_using_alias instead of type_to_str in struct.v

* update test
2021-03-24 20:13:11 +02:00
Lukas Neubert a67d49050c
math: add a pure V `math.mathutil`, with generic `min`, `max` and `abs` functions (#9176), and use it consistently 2021-03-12 11:28:04 +02:00
Lukas Neubert f69cef397c
fmt: do not insert a space before struct declaration generics (#9239) 2021-03-11 14:54:40 +02:00
zakuro 45d51c76da
v.util: add an iabs(x) helper (#9172) 2021-03-07 11:24:05 +02:00
zakuro b83530e0ed
fmt: extract part of fmt.v into struct.v (#9141) 2021-03-06 20:40:44 +02:00