-
Notifications
You must be signed in to change notification settings - Fork 60
Highlight unique components of overloaded declarations [alternate approach] #847
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
Closed
mportiz08
wants to merge
12
commits into
swiftlang:main
from
mportiz08:highlight-unique-components-of-overloaded-declarations2
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
ac38ac0
wip: declaration tokens with highlightDiff field
QuietMisdreavus e5c5e5a
highlightDiff tokens are now container tokens
QuietMisdreavus 1c2f6f5
Add new `Highlighted` declaration token component.
mportiz08 ff9b741
Don't highlight tokens in selected declaration.
mportiz08 bce4a62
Don't highlight tokens in initial, unexpanded declaration.
mportiz08 2dbfe52
Remove no longer used style.
mportiz08 0e0bb92
Merge remote-tracking branch 'apple/main' into highlight-unique-compo…
mportiz08 edd4e83
Merge remote-tracking branch 'apple/main' into highlight-unique-compo…
mportiz08 03ee706
Merge remote-tracking branch 'apple/main' into highlight-unique-compo…
mportiz08 4d24af4
Highlight declaration tokens with `highlightDiff` flag set.
mportiz08 55e6fd9
Animate highlighted tokens along with declaration list animation.
mportiz08 e549cef
Use `highlight="changed"` instead of `highlightDiff=true`.
mportiz08 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,21 +7,13 @@ | |
See https://swift.org/LICENSE.txt for license information | ||
See https://swift.org/CONTRIBUTORS.txt for Swift project authors | ||
--> | ||
<template> | ||
<span>{{text}}</span> | ||
</template> | ||
|
||
<script> | ||
// This component is an optimization that allows us to emit raw text DOM nodes | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. RIP 🥲 |
||
// for simple text tokens that have no need for a wrapper element. This uses a | ||
// private Vue API (`this._v`) and falls back to adding an empty <span> tag if | ||
// that API goes away in the future. | ||
export default { | ||
name: 'RawText', | ||
render(createElement) { | ||
const { | ||
_v: createTextNode = str => createElement('span', str), | ||
text, | ||
} = this; | ||
return createTextNode(text); | ||
}, | ||
props: { | ||
text: { | ||
type: String, | ||
|
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
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.
Uh oh!
There was an error while loading. Please reload this page.