Allow types as well as values in possibly type argument location

Fixes #22369
This commit is contained in:
Sheetal Nandi committed 2018-03-08 16:06:26 -08:00
1 parent 17b10dc2a9
commit e1a89e7011
5 files changed
+162 -7

No files matched your search

+6 -1
View File
@@ -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);
}