瀏覽代碼

[macro] rename Document.uri to file

Simon Krajewski 8 年之前
父節點
當前提交
e886cae782
共有 2 個文件被更改,包括 2 次插入12 次删除
  1. 1 1
      src/macro/macroApi.ml
  2. 1 11
      std/haxe/display/Position.hx

+ 1 - 1
src/macro/macroApi.ml

@@ -1919,7 +1919,7 @@ let macro_api ccom get_api =
 				"end",pos_end;
 			] in
 			let location = encode_obj O__Const [
-				"uri",encode_string p.Globals.pfile;
+				"file",encode_string p.Globals.pfile;
 				"range",range
 			] in
 			location

+ 1 - 11
std/haxe/display/Position.hx

@@ -21,16 +21,6 @@
  */
 package haxe.display;
 
-abstract DocumentUri(String) {
-    public inline function new(uri:String) {
-        this = uri;
-    }
-
-    public inline function toString() {
-        return this;
-    }
-}
-
 /**
     Position in a text document expressed as zero-based line and character offset.
 **/
@@ -65,6 +55,6 @@ typedef Range = {
     Represents a location inside a resource, such as a line inside a text file.
 **/
 typedef Location = {
-    var uri:DocumentUri;
+    var file:String;
     var range:Range;
 }