Browse Source

[display] Location objects are nullable in display requests

See genjson.ml -> generate_pos_as_location
k 2 năm trước cách đây
mục cha
commit
737a82f434
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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>>>;