-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core): st-mixin feature overall #2398
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- feature file - moved mixin symbol to feature - initialized feature in meta
idoros
added
core
Processing and transforming logic
tech debt
Updates, upgrades, stale code and work-arounds
labels
Mar 21, 2022
- move mixin analyze to `analyzeDeclaration` - move parsers from `stylable-value-parsers` to `helpers/mixin` - move `valueMapping` of mixins from `stylable-value-parsers` to feature `MixinType` - remove `valueParserWarning` from core index
- add `features/st-mixin.spec` - move, change to new test format in to related feature specs - wrap deprecated usage in `filterPartialMixinDecl` with ignoreDeprecationWarn - remove regression test related to `inheritedMeta` that is no longer used
idoros
changed the title
refactor(core): mixin feature extraction
fix(core): st-mixin feature overall
Apr 5, 2022
- move get/set to prototype - move initializer to head
- no need for missing mixin declaration diagnostic before transform - refactor `SRule.mixins` to not be used internally - refactor collectDeclMixins out of `analyzeDeclaration` and reused it in `transformLastPass`
- mixin is parsed against the resolved mixin symbol, so params signature is known
- remove unneeded `SRule` usage
barak007
reviewed
Apr 18, 2022
barak007
reviewed
Apr 22, 2022
barak007
reviewed
Apr 22, 2022
barak007
reviewed
Apr 22, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fix
:is(.mix)
not included in mixin: playground:global()
without the mixin anchor: playground@keyframes
are copied with root mixin and namespaced to mixin - should either namespace according to mixed-in sheet or reference the mixin origin: playground-st-partial-mixin
and-st-mixin
with decls between them, the last mixin decl location is used as an insertion for both: playground@keyframes
states: playground-st-global
doesn't register the tometa.globals
: playgroundrefactor
processor
analyzeDeclaration
- move definition/validation to featuretransform
transformLastPass
- move mixin append to feature hookdeprecate
SRule.mixins
usagetest
st-mixin.spec
and convert to new format