Skip to content

Handle identifier collisions in codegen #9

@clickingbuttons

Description

@clickingbuttons

Make an identifier string pool per-file to handle naming clashes. Give user fields and enums their function, field, and type identifiers. Then:

  1. Give modules their identifiers
  2. Give inner fields (like _tab: flatbufferz.Table) their identifiers
  3. Give function parameters their identifiers
  4. Give temporary variables their identifiers

This will allow removing _s from field names (like _tab) and temporaries. It will also allow consistently naming the first self: Self parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions