<commit_before>package thx.macro;

#if (neko || macro)
import haxe.macro.TypeTools;
import haxe.macro.Type.ClassType;
/**
Extension methods to work with types at macro time.
**/
class MacroClassTypes {
/**
It returns an array of types in string format representing the inheritance chain of the
passed `ClassType`.
**/
  public static function inheritance(cls : haxe.macro.Type.ClassType) : Array<String> {
    var types = [cls.pack.concat([cls.name]).join(".")],
      parent = null == cls.superClass ? null : classInheritance(cls.superClass.t.get());
    if(null != parent)
      types = types.concat(parent);
    return types;
  }
}
#end
<commit_msg>fixed inheritance implementation<commit_after>package thx.macro;

#if (neko || macro)
import thx.Arrays;
import haxe.macro.TypeTools;
import haxe.macro.Type.ClassType;
/**
Extension methods to work with `ClassType`s at macro time.
**/
class MacroClassTypes {
/**
It returns an array of types in string format representing the inheritance chain of the
passed `ClassType`.
**/
  public static function inheritance(cls : haxe.macro.Type.ClassType) : Array<String> {
    var types = [cls.pack.concat([cls.name]).join(".")],
      parent = null == cls.superClass ? null : inheritance(cls.superClass.t.get());
    if(null != parent)
      types = types.concat(parent);
    return types;
  }
}
#end

{'fraction_non_alphanumeric': 0.13392857142857142, 'fraction_numerical': 0.0, 'mean_word_length': 4.056390977443609, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5144636', 'n_tokens_mistral': 430, 'n_tokens_neox': 413, 'n_words': 120}