mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-11-18 20:11:14 +00:00
Allow types as well as values in possibly type argument location
Fixes #22369
This commit is contained in:
1 parent
17b10dc2a9
commit
e1a89e7011
5 files changed
+162
-7
No files matched your search
@@ -435,7 +435,7 @@ namespace FourSlash {
|
||||
}
|
||||
}
|
||||
|
||||
private markerName(m: Marker): string {
|
||||
public markerName(m: Marker): string {
|
||||
return ts.forEachEntry(this.testData.markerPositions, (marker, name) => {
|
||||
if (marker === m) {
|
||||
return name;
|
||||
@@ -3768,6 +3768,10 @@ namespace FourSlashInterface {
|
||||
return this.state.getMarkerByName(name);
|
||||
}
|
||||
|
||||
public markerName(m: FourSlash.Marker) {
|
||||
return this.state.markerName(m);
|
||||
}
|
||||
|
||||
public ranges(): FourSlash.Range[] {
|
||||
return this.state.getRanges();
|
||||
}
|
||||
@@ -3810,6 +3814,7 @@ namespace FourSlashInterface {
|
||||
this.state.goToEachMarker(markers, typeof a === "function" ? a : b);
|
||||
}
|
||||
|
||||
|
||||
public rangeStart(range: FourSlash.Range) {
|
||||
this.state.goToRangeStart(range);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user