Donny/강동윤
d1097ccb59
feat(css/parser): Store lexed comments ( #8091 )
...
**Description:**
For now, we leave every comment as a leading comment. As logic for determining leading vs trailing is quite complex, I'll do it with another PR.
2023-10-10 11:42:20 +00:00
Donny/강동윤
84cec8766d
refactor(atoms): Remove usage of js_word!
to drop string-cache
( #7976 )
...
**Description:**
This PR is to prepare removal of `string-cache`. Actually, this PR does not remove it. Instead, this PR only removes direct usages of `js_word!`s, especially in patterns.
**Related issue:**
- #4946 .
2023-10-08 00:39:51 +00:00
Alexander Akait
c01464e452
feat(css/parser): Normalize URL functions ( #6675 )
2022-12-19 07:53:29 +00:00
Donny/강동윤
b4eef53680
feat(css/ast): Make AST intuitive ( #6606 )
2022-12-09 02:27:19 +00:00
Alexander Akait
252edb550b
perf(css/parser): Reduce number of function calls ( #6587 )
2022-12-07 01:45:03 +00:00
Alexander Akait
8633d27df0
perf(css/ast): Reduce token size ( #6569 )
2022-12-06 01:58:29 +00:00
Donny/강동윤
7ee86d1d25
test: Use correct extensions for fixture tests ( #6539 )
2022-11-29 09:47:56 +00:00
Donny/강동윤
b8fe04f720
feat(common): Add contexts to the error messages ( #6526 )
...
**Description:**
This PR makes the error reporter print contexts.
**Related issue:**
- https://github.com/swc-project/swc/issues/6525 .
2022-11-29 00:56:47 +09:00
Alexander Akait
ec2c021255
perf(css/ast): Use Atom
for raw
values ( #6401 )
2022-11-11 01:24:11 +00:00
Alexander Akait
bea6cce0c6
perf(css): Reduce size of tokens ( #6384 )
2022-11-10 01:36:53 +00:00
Alexander Akait
6c170e59c7
refactor(css/ast): Refactor dashed ident ( #6198 )
2022-10-19 03:58:16 +00:00
Alexander Akait
e63fa28008
fix(css/ast): Fix AST types for simple block ( #6131 )
2022-10-13 05:31:34 +00:00
Alexander Akait
b65a16c7aa
feat(css/ast): Make raw
optional ( #5211 )
2022-07-15 11:22:59 +00:00
Donny/강동윤
67942d5731
feat(common): Reserve BytePos(0)
for dummy spans ( #4616 )
2022-05-11 16:14:42 +00:00
Edwin Coronado
57802cfcce
fix(common): Fix the line number of errors ( #4082 )
2022-03-19 23:56:12 +09:00
Donny/강동윤
40b8a4e596
feat(common): Implement a pretty error reporter ( #3946 )
2022-03-13 19:07:18 +00:00
Alexander Akait
3ec45a6858
feat(css/ast): Union Value
and ComponentValue
( #3804 )
2022-03-01 15:26:17 +00:00
Alexander Akait
e97074b6c3
feat(css/ast): Use SimpleBlock
in more places ( #3575 )
2022-02-16 12:40:16 +09:00
Alexander Akait
aed622be2f
refactor(css/ast): Rename tokens to match spec ( #3553 )
2022-02-14 13:05:16 +00:00
Alexander Akait
37c49e876c
refactor(css/ast): Unify SimpleBlock
and Block
completely ( #3531 )
2022-02-11 22:31:51 +09:00
Alexander Akait
92a3cb9609
refactor(css/ast): Remove Tokens
in favor of Vec<TokenAndSpan>
( #3507 )
2022-02-10 11:25:19 +00:00
Alexander Akait
460f846934
refactor(css/ast): Rename types to match specification ( #3484 )
2022-02-09 19:43:15 +09:00
Alexander Akait
cd87d965f3
refactor(css/ast): Refactor types related to selectors ( #3460 )
2022-02-06 04:24:51 +00:00
Alexander Akait
49564d9b5d
feat(css/ast): Improve types related to url
tokens ( #3444 )
2022-02-04 04:05:44 +00:00
Alexander Akait
30c29a30cf
feat(css): Improve codegen where minify: true
( #3414 )
...
swc_css_codegen:
- Improve minification.
swc_css_parser:
- Add parsing rule for `sum`.
2022-02-01 12:30:44 +00:00
Alexander Akait
eeedd9adf5
refactor(css/ast): Rename property
to name
( #3410 )
2022-01-31 05:02:30 +00:00
Alexander Akait
b31619d48e
refactor(css/ast): Refactor delimited values ( #3397 )
2022-01-29 12:10:29 +09:00
Alexander Akait
dfa0286aca
feat(css/ast): Add types for dashed identifiers and @color-profile
at-rules ( #3364 )
2022-01-26 20:35:49 +09:00
Alexander Akait
7787f90da0
refactor(css/ast): Fix type definitions related to @import
at-rule ( #3351 )
2022-01-25 22:50:23 +09:00