Moved self as this alias keyword

This commit is contained in:
Willem Cazander 2025-01-07 15:53:43 +01:00
parent bc1985b798
commit 0de77ea719
2 changed files with 7 additions and 4 deletions

View file

@ -60,9 +60,6 @@ public enum FCDotCLK1KDashS implements FCDotCLKSourceCakePoints {
SYNCHRONIZED(FCDotCLKSource.CPP, FCDotCLKSource.JAVA),
STRICTFP(FCDotCLKSource.JAVA),
SUPER(FCDotCLKSource.JAVA, FCDotCLKSource.RUST, FCDotCLKSource.ES6),
// NOTE: Example dedup move SELF and SELF_TYPE to THIS/THIS_TYPE with aliases for RUST
SELF(FCDotCLKSource.RUST, FCDotCLKSource.PYTHON),
SELF_TYPE(FCDotCLKSource.RUST.toQNameAlias("Self")),
STATIC_LIFE(FCDotCLKSource.RUST.toQNameAlias("'static")),
SAFE(FCDotCLKSource.RUST),
;

View file

@ -42,7 +42,13 @@ public enum FCDotCLK1KDashT implements FCDotCLKSourceCakePoints {
TRANSPORT(FCDotCLKSource.VHDL),
TYPE(FCDotCLKSource.VHDL, FCDotCLKSource.RUST),
TEMPLATE(FCDotCLKSource.CPP),
THIS(FCDotCLKSource.CPP, FCDotCLKSource.JAVA, FCDotCLKSource.ES6),
THIS(FCDotCLKSource.CPP,
FCDotCLKSource.JAVA,
FCDotCLKSource.ES6,
FCDotCLKSource.RUST.toQNameAlias("self"),
FCDotCLKSource.PYTHON.toQNameAlias("self")
),
THIS_TYPE(FCDotCLKSource.RUST.toQNameAlias("Self")),
THREAD_LOCAL(FCDotCLKSource.CPP),
THROW(FCDotCLKSource.CPP, FCDotCLKSource.JAVA, FCDotCLKSource.ES6),
TRUE(FCDotCLKSource.CPP,