Переглянути джерело

[std] mention that getInstanceFields() includes inherited fields

[ci skip]
Jens Fischer 6 роки тому
батько
коміт
15323de581
1 змінених файлів з 4 додано та 3 видалено
  1. 4 3
      std/Type.hx

+ 4 - 3
std/Type.hx

@@ -182,11 +182,12 @@ extern class Type {
 	public static function createEnumIndex<T>( e : Enum<T>, index : Int, ?params : Array<Dynamic> ) : T;
 
 	/**
-		Returns a list of the instance fields of class `c`.
+		Returns a list of the instance fields of class `c`, including
+		inherited fields.
 
 		This only includes fields which are known at compile-time. In
-		particular, using getInstanceFields(getClass(obj)) will not include
-		any fields which were added to obj at runtime.
+		particular, using `getInstanceFields(getClass(obj))` will not include
+		any fields which were added to `obj` at runtime.
 
 		The order of the fields in the returned Array is unspecified.