maya.utils.converter.report

Conversion report data structures.

Provides structured reporting of conversion results including applied rules, helper expansions, and unsupported operations.

Classes

ConversionEntry

A single entry in the conversion report.

ConversionReport

Complete report of a code conversion operation.

EntryType

Classification of conversion entry types.

Module Contents

class ConversionEntry

A single entry in the conversion report.

converted_code: str | None = None
entry_type: EntryType
line_number: int
message: str | None = None
original_code: str
rule_name: str | None = None
class ConversionReport

Complete report of a code conversion operation.

summary() str

Generate a human-readable summary of the conversion.

converted_code: str
entries: List[ConversionEntry] = []
property failure_count: int

Count of failed or unsupported conversions.

property helpers_expanded: List[ConversionEntry]

Return all entries where a blessed helper was expanded.

property rules_applied: List[ConversionEntry]

Return all entries where a rule was successfully applied.

source_code: str
property success_count: int

Count of successfully converted expressions.

property unsupported_operations: List[ConversionEntry]

Return all unsupported operations that were not converted.

property warnings: List[ConversionEntry]

Return all warning entries.

class EntryType(*args, **kwds)

Bases: enum.Enum

Classification of conversion entry types.

HELPER_EXPANDED = 'helper_expanded'
INFO = 'info'
RULE_APPLIED = 'rule_applied'
UNSUPPORTED = 'unsupported'
WARNING = 'warning'