Browse Source

[display] Location objects are nullable in display requests

See genjson.ml -> generate_pos_as_location
k 2 years ago
parent
commit
737a82f434
1 changed files with 2 additions and 2 deletions
  1. 2 2
      std/haxe/display/Display.hx

+ 2 - 2
std/haxe/display/Display.hx

@@ -493,10 +493,10 @@ enum abstract FindReferencesKind(String) to String {
 }
 
 /** GotoDefinition **/
-typedef GotoDefinitionResult = Response<Array<Location>>;
+typedef GotoDefinitionResult = Response<Array<Null<Location>>>;
 
 /** GotoTypeDefinition **/
-typedef GotoTypeDefinitionResult = Response<Array<Location>>;
+typedef GotoTypeDefinitionResult = Response<Array<Null<Location>>>;
 
 /** Hover **/
 typedef HoverResult = Response<Null<HoverDisplayItemOccurence<Dynamic>>>;