-
-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
352 additions
and
39 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
class MyClass { | ||
|
||
} | ||
--- | ||
|
||
[Content] = | ||
[Removal] = | ||
[Domain] = 0:0-2:1 | ||
>--------------- | ||
0| class MyClass { | ||
1| | ||
2| } | ||
-< | ||
|
||
[Insertion delimiter] = "\n\n" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
class MyClass { | ||
|
||
} | ||
--- | ||
|
||
[Content] = 0:6-0:13 | ||
>-------< | ||
0| class MyClass { | ||
|
||
[Removal] = 0:6-0:14 | ||
>--------< | ||
0| class MyClass { | ||
|
||
[Leading delimiter] = 0:5-0:6 | ||
>-< | ||
0| class MyClass { | ||
|
||
[Trailing delimiter] = 0:13-0:14 | ||
>-< | ||
0| class MyClass { | ||
|
||
[Domain] = 0:0-2:1 | ||
>--------------- | ||
0| class MyClass { | ||
1| | ||
2| } | ||
-< | ||
|
||
[Insertion delimiter] = " " |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
foo() { | ||
if (true) { } | ||
} | ||
--- | ||
|
||
[Content] = | ||
[Domain] = 1:2-1:15 | ||
>-------------< | ||
1| if (true) { } | ||
|
||
[Removal] = 1:0-1:15 | ||
>---------------< | ||
1| if (true) { } | ||
|
||
[Leading delimiter] = 1:0-1:2 | ||
>--< | ||
1| if (true) { } | ||
|
||
[Insertion delimiter] = "\n" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
final list = [1,2,3]; | ||
--- | ||
|
||
[Content] = | ||
[Domain] = 0:13-0:20 | ||
>-------< | ||
0| final list = [1,2,3]; | ||
|
||
[Removal] = 0:12-0:20 | ||
>--------< | ||
0| final list = [1,2,3]; | ||
|
||
[Leading delimiter] = 0:12-0:13 | ||
>-< | ||
0| final list = [1,2,3]; | ||
|
||
[Insertion delimiter] = " " |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
final map = { | ||
'hi': 1, | ||
}; | ||
--- | ||
|
||
[Content] = | ||
[Domain] = 0:14-2:3 | ||
>- | ||
0| final map = { | ||
1| 'hi': 1, | ||
2| }; | ||
---< | ||
|
||
[Removal] = 0:13-2:3 | ||
>-- | ||
0| final map = { | ||
1| 'hi': 1, | ||
2| }; | ||
---< | ||
|
||
[Leading delimiter] = 0:13-0:14 | ||
>-< | ||
0| final map = { | ||
|
||
[Insertion delimiter] = " " |
33 changes: 33 additions & 0 deletions
33
data/fixtures/scopes/javascript.core/collectionItem.unenclosed.scope
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
let foo, bar; | ||
--- | ||
|
||
[#1 Content] = | ||
[#1 Domain] = 0:4-0:7 | ||
>---< | ||
0| let foo, bar; | ||
|
||
[#1 Removal] = 0:4-0:9 | ||
>-----< | ||
0| let foo, bar; | ||
|
||
[#1 Trailing delimiter] = 0:7-0:9 | ||
>--< | ||
0| let foo, bar; | ||
|
||
[#1 Insertion delimiter] = ", " | ||
|
||
|
||
[#2 Content] = | ||
[#2 Domain] = 0:9-0:12 | ||
>---< | ||
0| let foo, bar; | ||
|
||
[#2 Removal] = 0:7-0:12 | ||
>-----< | ||
0| let foo, bar; | ||
|
||
[#2 Leading delimiter] = 0:7-0:9 | ||
>--< | ||
0| let foo, bar; | ||
|
||
[#2 Insertion delimiter] = ", " |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"aaa" | ||
r#"bbb"# | ||
r##"ccc"## | ||
--- | ||
|
||
[#1 Content] = | ||
[#1 Removal] = | ||
[#1 Domain] = 0:0-0:5 | ||
>-----< | ||
0| "aaa" | ||
|
||
[#1 Insertion delimiter] = " " | ||
|
||
|
||
[#2 Content] = | ||
[#2 Removal] = | ||
[#2 Domain] = 1:0-1:8 | ||
>--------< | ||
1| r#"bbb"# | ||
|
||
[#2 Insertion delimiter] = " " | ||
|
||
|
||
[#3 Content] = | ||
[#3 Removal] = | ||
[#3 Domain] = 2:0-2:10 | ||
>----------< | ||
2| r##"ccc"## | ||
|
||
[#3 Insertion delimiter] = " " |
30 changes: 30 additions & 0 deletions
30
data/fixtures/scopes/rust/textFragment.string.singleLine.scope
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
"aaa" | ||
r#"bbb"# | ||
r##"ccc"## | ||
--- | ||
|
||
[#1 Content] = | ||
[#1 Removal] = | ||
[#1 Domain] = 0:1-0:4 | ||
>---< | ||
0| "aaa" | ||
|
||
[#1 Insertion delimiter] = " " | ||
|
||
|
||
[#2 Content] = | ||
[#2 Removal] = | ||
[#2 Domain] = 1:3-1:6 | ||
>---< | ||
1| r#"bbb"# | ||
|
||
[#2 Insertion delimiter] = " " | ||
|
||
|
||
[#3 Content] = | ||
[#3 Removal] = | ||
[#3 Domain] = 2:4-2:7 | ||
>---< | ||
2| r##"ccc"## | ||
|
||
[#3 Insertion delimiter] = " " |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
foo() { | ||
final hi = ''; | ||
if (hi.isNotEmpty) { | ||
|
||
// | ||
} | ||
|
||
|
||
else if (true) { | ||
// | ||
} | ||
|
||
final list = [1, 2, 3]; | ||
|
||
final map = { | ||
'hi': 1, | ||
}; | ||
} | ||
|
||
class Something{ | ||
|
||
} |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import type { LanguageScopeSupportFacetMap } from "./scopeSupportFacets.types"; | ||
import { ScopeSupportFacetLevel } from "./scopeSupportFacets.types"; | ||
|
||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | ||
const { supported, unsupported, notApplicable } = ScopeSupportFacetLevel; | ||
|
||
export const dartScopeSupport: LanguageScopeSupportFacetMap = { | ||
ifStatement: supported, | ||
list: supported, | ||
map: supported, | ||
class: supported, | ||
className: supported, | ||
}; |
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
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
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
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
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
5 changes: 5 additions & 0 deletions
5
packages/cursorless-org-docs/src/docs/user/languages/dart.mdx
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import Language from "./Language"; | ||
|
||
# dart | ||
|
||
<Language languageId="dart"></Language> |
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
Oops, something went wrong.