Skip to main content

crashtest.hxsmith.coverage

Which constructs of the Haxe parser's AST does some feature generate?

The vocabulary is read from src/core/ast.ml of a Haxe checkout, so it follows the language as it evolves; Feature.covers claims constructors from it. This reports claimed, unclaimed and deliberately excluded constructors, and is how you find the next feature to write.

class Coverage​

claimed: Dict[str, List[str]]​

unclaimed: List[str]​

excluded: Dict[str, str]​

unknown: Dict[str, List[str]]​

render​

def render() -> str

init​

def __init__(claimed: Dict[str, List[str]], unclaimed: List[str], excluded: Dict[str, str], unknown: Dict[str, List[str]]) -> None

measure​

def measure(haxe: Path = DEFAULT_HAXE) -> Coverage

vocabulary​

def vocabulary(haxe: Path = DEFAULT_HAXE) -> List[str]

Every constructor of the SECTIONS types in ast.ml.

DEFAULT_HAXE​

DEFAULT_HAXE = Path.home() / 'code' / 'haxe'

EXCLUDED​

EXCLUDED = {'EDisplay': 'IDE completion marker; never in compiled code', 'AMacro': 'macros run at compile time and leave no trace in bytecode', 'HExtern': 'extern classes have no bytecode', 'EStatic': 'module-level statics are produced by the same code path as class statics'}

SECTIONS​

SECTIONS = ('constant', 'binop', 'unop', 'expr_def', 'function_kind', 'efield_kind', 'while_flag', 'access', 'class_flag', 'class_field_kind', 'type_def')