Browse Source

added "file" parsing in rtti type infos

Nicolas Cannasse 13 years ago
parent
commit
4bfb242ca9
2 changed files with 4 additions and 0 deletions
  1. 1 0
      std/haxe/rtti/CType.hx
  2. 3 0
      std/haxe/rtti/XmlParser.hx

+ 1 - 0
std/haxe/rtti/CType.hx

@@ -69,6 +69,7 @@ typedef ClassField = {
 typedef TypeInfos = {
 	var path : Path;
 	var module : Path;
+	var file : Null<String>;
 	var params : TypeParams;
 	var doc : String;
 	var isPrivate : Bool;

+ 3 - 0
std/haxe/rtti/XmlParser.hx

@@ -331,6 +331,7 @@ class XmlParser {
 					fields.add(xclassfield(c));
 			}
 		return {
+			file : if(x.has.file) x.att.file else null,
 			path : mkPath(x.att.path),
 			module : if( x.has.module ) mkPath(x.att.module) else null,
 			doc : doc,
@@ -380,6 +381,7 @@ class XmlParser {
 			else
 				cl.add(xenumfield(c));
 		return {
+			file : if(x.has.file) x.att.file else null,
 			path : mkPath(x.att.path),
 			module : if( x.has.module ) mkPath(x.att.module) else null,
 			doc : doc,
@@ -432,6 +434,7 @@ class XmlParser {
 		if( curplatform != null )
 			types.set(curplatform,t);
 		return {
+			file : if(x.has.file) x.att.file else null,
 			path : mkPath(x.att.path),
 			module : if( x.has.module ) mkPath(x.att.module) else null,
 			doc : doc,