Backport dump format specifics

Aperta
#117 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
47/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
kotlin
Ambito
build-system

Direzione di ricerca

Read the dump-format handling for FIR and IR output in the repository; the issue does not name files or tests, so first locate where compiler-version-specific dumps are compared or normalized. Check the listed cases: evaluated, implicitArrayOf, CLASS_REFERENCE, and spacing before by; done means the older compiler output is handled consistently for the agreed cases.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

compatibility
  • FIR up to 2.3.21 doesn’t print [evaluated = ...] on annotation arguments.
  • FIR up to the 253 IDE compiler prints instead of .
  • IR up to 2.4.0-dev-2631 prints the long CLASS_REFERENCE form instead of Companion::class.

Likely many more such cases
I noticed one recently:

  • FIR up to some 2.5.20-dev version prints by property delegation without a space before the type.

We should backport these differences somehow. For evaluated, we might simply ignore the evaluated value? This means we're straying away from behavior of newest compiler, but maybe that's fine
implicitArrayOf and CLASS_REFERENCE are likely very easy to backport, same with adding space before by

Lingua principale
Kotlin
Stelle
34
Fork
1
Merge medio
1g 9h
PR unite (30g)
3

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Kotlin/compiler-plugin-dev-kit

Tutte le issue di Kotlin/compiler-plugin-dev-kit

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.