Expand description
Java source emission from the statement/expression tree.
Structs§
Functions§
- escape_
char - escape_
string - format_
float - is_
java_ keyword - Java reserved words (plus the null/true/false literals, and
_— a reserved IDENTIFIER since Java 9: Alipay’s instant-run patch system names fields_, andjavacrejects it with “underscores are not allowed here”): Kotlin emits methods and fields nameddefault(Companion.default()) — no Java program can name them, so both ddc’s declarations and these call sites map them to_<name>identically (which turns_into__). NOTE: these are MEMBER-level escapes — locals/fields/params MAY legally carry the restricted contextual type names below (rt.jar hasvarlocals), so those live in their own predicate. - is_
restricted_ type_ name - Restricted CONTEXTUAL type names — javac rejects them in TYPE
declarations and type references (
'var' 是受限类型名称), but they stay legal as member/local names (rt.jar compilesvarlocals). Consulted ONLY where a CLASS name renders: type declarations, segment sanitizers, the qualified-new simple name. - java_
ident - Kotlin emits method names like
invokeSuspend$lambda-0—-and any other non-identifier character is not legal Java. Deterministic mapping; ddc’s classdec applies the identical rule at declarations. - sanitize_
source_ name