瀏覽代碼

[display] Location objects are nullable in display requests

See genjson.ml -> generate_pos_as_location
k 2 年之前
父節點
當前提交
737a82f434
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 **/
 /** GotoDefinition **/
-typedef GotoDefinitionResult = Response<Array<Location>>;
+typedef GotoDefinitionResult = Response<Array<Null<Location>>>;
 
 
 /** GotoTypeDefinition **/
 /** GotoTypeDefinition **/
-typedef GotoTypeDefinitionResult = Response<Array<Location>>;
+typedef GotoTypeDefinitionResult = Response<Array<Null<Location>>>;
 
 
 /** Hover **/
 /** Hover **/
 typedef HoverResult = Response<Null<HoverDisplayItemOccurence<Dynamic>>>;
 typedef HoverResult = Response<Null<HoverDisplayItemOccurence<Dynamic>>>;