-
-
Notifications
You must be signed in to change notification settings - Fork 91
Include generic in java type definition #372
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
Changes from all commits
bf89bd1
e824567
2e757e4
f4cea62
3b6998f
feb935d
9ffb798
a9d6643
b449305
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
languageId: java | ||
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. Not worth rewriting all these tests, but I thought we had aligned on "clear" instead of "take" to make these tests easier to read. Makes it a bit painful having to manually count offsets to figure out what the test is doing 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. You're completely correct. 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. Fwiw I'm planning a rework of the tests to make modifier tests clearer / more compact, and then the "clear" / "take" thing won't matter. Not sure if I've already filed an issue but I will at some point 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. that sounds really useful |
||
command: | ||
version: 1 | ||
spokenForm: take type blue look | ||
action: setSelection | ||
targets: | ||
- type: primitive | ||
modifier: {type: containingScope, scopeType: type, includeSiblings: false} | ||
mark: {type: decoratedSymbol, symbolColor: blue, character: l} | ||
initialState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 2, character: 38} | ||
active: {line: 2, character: 61} | ||
marks: | ||
blue.l: | ||
start: {line: 3, character: 8} | ||
end: {line: 3, character: 12} | ||
finalState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 3, character: 8} | ||
active: {line: 3, character: 20} | ||
thatMark: | ||
- anchor: {line: 3, character: 8} | ||
active: {line: 3, character: 20} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: blue, character: l}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: containingScope, scopeType: type, includeSiblings: false}}] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
languageId: java | ||
command: | ||
version: 1 | ||
spokenForm: take type gust | ||
action: setSelection | ||
targets: | ||
- type: primitive | ||
modifier: {type: containingScope, scopeType: type, includeSiblings: false} | ||
mark: {type: decoratedSymbol, symbolColor: default, character: g} | ||
initialState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 3, character: 8} | ||
active: {line: 3, character: 20} | ||
marks: | ||
default.g: | ||
start: {line: 3, character: 13} | ||
end: {line: 3, character: 19} | ||
finalState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 3, character: 8} | ||
active: {line: 3, character: 20} | ||
thatMark: | ||
- anchor: {line: 3, character: 8} | ||
active: {line: 3, character: 20} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: g}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: containingScope, scopeType: type, includeSiblings: false}}] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
languageId: java | ||
command: | ||
version: 1 | ||
spokenForm: take type gust | ||
action: setSelection | ||
targets: | ||
- type: primitive | ||
modifier: {type: containingScope, scopeType: type, includeSiblings: false} | ||
mark: {type: decoratedSymbol, symbolColor: default, character: g} | ||
initialState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 3, character: 32} | ||
active: {line: 3, character: 49} | ||
marks: | ||
default.g: | ||
start: {line: 3, character: 42} | ||
end: {line: 3, character: 48} | ||
finalState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
AndreasArvidsson marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
} | ||
selections: | ||
- anchor: {line: 3, character: 32} | ||
active: {line: 3, character: 49} | ||
thatMark: | ||
- anchor: {line: 3, character: 32} | ||
active: {line: 3, character: 49} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: g}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: containingScope, scopeType: type, includeSiblings: false}}] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
languageId: java | ||
command: | ||
version: 1 | ||
spokenForm: take type harp | ||
action: setSelection | ||
targets: | ||
- type: primitive | ||
modifier: {type: containingScope, scopeType: type, includeSiblings: false} | ||
mark: {type: decoratedSymbol, symbolColor: default, character: h} | ||
initialState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 2, character: 8} | ||
active: {line: 2, character: 27} | ||
marks: | ||
default.h: | ||
start: {line: 2, character: 38} | ||
end: {line: 2, character: 45} | ||
finalState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 2, character: 38} | ||
active: {line: 2, character: 61} | ||
thatMark: | ||
- anchor: {line: 2, character: 38} | ||
active: {line: 2, character: 61} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: h}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: containingScope, scopeType: type, includeSiblings: false}}] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
languageId: java | ||
command: | ||
version: 1 | ||
spokenForm: take type look | ||
action: setSelection | ||
targets: | ||
- type: primitive | ||
modifier: {type: containingScope, scopeType: type, includeSiblings: false} | ||
mark: {type: decoratedSymbol, symbolColor: default, character: l} | ||
initialState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 2, character: 27} | ||
active: {line: 2, character: 27} | ||
marks: | ||
default.l: | ||
start: {line: 3, character: 21} | ||
end: {line: 3, character: 25} | ||
finalState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 3, character: 8} | ||
active: {line: 3, character: 20} | ||
thatMark: | ||
- anchor: {line: 3, character: 8} | ||
active: {line: 3, character: 20} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: l}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: containingScope, scopeType: type, includeSiblings: false}}] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
languageId: java | ||
command: | ||
version: 1 | ||
spokenForm: take type pit | ||
action: setSelection | ||
targets: | ||
- type: primitive | ||
modifier: {type: containingScope, scopeType: type, includeSiblings: false} | ||
mark: {type: decoratedSymbol, symbolColor: default, character: p} | ||
initialState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 3, character: 52} | ||
active: {line: 3, character: 52} | ||
marks: | ||
default.p: | ||
start: {line: 2, character: 8} | ||
end: {line: 2, character: 11} | ||
finalState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 2, character: 8} | ||
active: {line: 2, character: 27} | ||
thatMark: | ||
- anchor: {line: 2, character: 8} | ||
active: {line: 2, character: 27} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: p}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: containingScope, scopeType: type, includeSiblings: false}}] |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
languageId: java | ||
command: | ||
version: 1 | ||
spokenForm: take type soon | ||
action: setSelection | ||
targets: | ||
- type: primitive | ||
modifier: {type: containingScope, scopeType: type, includeSiblings: false} | ||
mark: {type: decoratedSymbol, symbolColor: default, character: s} | ||
initialState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 2, character: 8} | ||
active: {line: 2, character: 27} | ||
marks: | ||
default.s: | ||
start: {line: 2, character: 12} | ||
end: {line: 2, character: 18} | ||
finalState: | ||
documentContents: |- | ||
public class MyClass { | ||
private MyClass () { | ||
Map<String, String> map = new HashMap<String, String>(); | ||
List<String> list = new ArrayList<String>(); | ||
} | ||
} | ||
selections: | ||
- anchor: {line: 2, character: 8} | ||
active: {line: 2, character: 27} | ||
thatMark: | ||
- anchor: {line: 2, character: 8} | ||
active: {line: 2, character: 27} | ||
fullTargets: [{type: primitive, mark: {type: decoratedSymbol, symbolColor: default, character: s}, selectionType: token, position: contents, insideOutsideType: inside, modifier: {type: containingScope, scopeType: type, includeSiblings: false}}] |
Uh oh!
There was an error while loading. Please reload this page.