Interface RuntimeJsLibManager.ExternedField

All Superinterfaces:
RuntimeJsLibManager.InjectedJsLibField, RuntimeJsLibManager.JsLibField
Enclosing class:
RuntimeJsLibManager

public static interface RuntimeJsLibManager.ExternedField extends RuntimeJsLibManager.InjectedJsLibField
A RuntimeJsLibManager.InjectedJsLibField that was injected in RuntimeJsLibManager.RuntimeLibraryMode.EXTERN_FIELD_NAMES mode, and so has both a regular "qualified name" by which transpilation passes should refer to it - this is the externed name - but also provides the uncompiled, raw name of the field.

Only RuntimeJsLibManager.ExternedField instances provide access to the uncompiled name. Most use sites should use the compiled/qualified name, which may or may not equal the uncompiled name. So to try and minimize confusion, we only expose the uncompiled name when this is actually an external field injection.

  • Method Details

    • uncompiledName

      String uncompiledName()
      Returns the uncompiled name of the field, as it is seen in the raw runtime lib.