Browse Source

minor renames

Nicolas Cannasse 17 years ago
parent
commit
18ba99ab09
3 changed files with 11 additions and 10 deletions
  1. 1 0
      doc/CHANGES.txt
  2. 6 6
      std/haxe/rtti/Type.hx
  3. 4 4
      std/haxe/rtti/XmlParser.hx

+ 1 - 0
doc/CHANGES.txt

@@ -22,6 +22,7 @@ TODO inlining : substitute class+function type parameters in order to have fully
 	genswf9 : allowed to store a Class in a typed register
 	fixed switch-on-bool (don't use matching)
 	genswf9 : optimized switch on ints
+	some renames in haxe.rtti.Type
 
 2008-02-23: 1.18
 	some optimization and bugfix for as3 codegen

+ 6 - 6
std/haxe/rtti/Type.hx

@@ -49,24 +49,24 @@ typedef TypeInfos = {
 	var platforms : Platforms;
 }
 
-typedef Class = {> TypeInfos,
+typedef Classdef = {> TypeInfos,
 	var isExtern : Bool;
 	var isInterface : Bool;
 	var superClass : PathParams;
 	var interfaces : List<PathParams>;
 	var fields : List<ClassField>;
 	var statics : List<ClassField>;
-	var dynamic : Type; // null
+	var dynamic : Null<Type>;
 }
 
 typedef EnumField = {
 	var name : String;
-	var args : List<{ name : String, opt : Bool, t : Type }>; // null
+	var args : Null<List<{ name : String, opt : Bool, t : Type }>>;
 	var doc : String;
 	var platforms : Platforms;
 }
 
-typedef Enum = {> TypeInfos,
+typedef Enumdef = {> TypeInfos,
 	var isExtern : Bool;
 	var constructors : List<EnumField>;
 }
@@ -78,8 +78,8 @@ typedef Typedef = {> TypeInfos,
 
 enum TypeTree {
 	TPackage( name : String, full : String, subs : Array<TypeTree> );
-	TClassdecl( c : Class );
-	TEnumdecl( e : Enum );
+	TClassdecl( c : Classdef );
+	TEnumdecl( e : Enumdef );
 	TTypedecl( t : Typedef );
 }
 

+ 4 - 4
std/haxe/rtti/XmlParser.hx

@@ -62,7 +62,7 @@ class XmlParser {
 		xroot(new Fast(x));
 	}
 
-	function mergeClasses( c : Class, c2 : Class ) {
+	function mergeClasses( c : Classdef, c2 : Classdef ) {
 		// todo : compare supers & interfaces
 		if( c.isInterface != c2.isInterface || c.isExtern != c2.isExtern )
 			return false;
@@ -96,7 +96,7 @@ class XmlParser {
 		return true;
 	}
 
-	function mergeEnums( e : Enum, e2 : Enum ) {
+	function mergeEnums( e : Enumdef, e2 : Enumdef ) {
 		if( e.isExtern != e2.isExtern )
 			return false;
 		if( curplatform != null )
@@ -241,7 +241,7 @@ class XmlParser {
 		};
 	}
 
-	function xclass( x : Fast ) : Class {
+	function xclass( x : Fast ) : Classdef {
 		var csuper = null;
 		var doc = null;
 		var dynamic = null;
@@ -298,7 +298,7 @@ class XmlParser {
 		};
 	}
 
-	function xenum( x : Fast ) : Enum {
+	function xenum( x : Fast ) : Enumdef {
 		var cl = new List();
 		var doc = null;
 		for( c in x.elements )