Reorder steps in psi2ir so postprocessing goes before unbound symbols stub generating
This is required because currently IR compiler plugins are launched during 'postprocess' step
and for correct work they require unbound symbols for plugin-provided declarations
(see commit message of 3e18350a for detailed explanation)
This commit is contained in:
@@ -73,9 +73,11 @@ class Psi2IrTranslator(
|
||||
val moduleGenerator = ModuleGenerator(context)
|
||||
val irModule = moduleGenerator.generateModuleFragmentWithoutDependencies(ktFiles)
|
||||
|
||||
moduleGenerator.generateUnboundSymbolsAsDependencies(irProviders)
|
||||
irModule.patchDeclarationParents()
|
||||
postprocess(context, irModule)
|
||||
// do not generate unbound symbols before postprocessing,
|
||||
// since plugins must work with non-lazy IR
|
||||
moduleGenerator.generateUnboundSymbolsAsDependencies(irProviders)
|
||||
irModule.computeUniqIdForDeclarations(context.symbolTable)
|
||||
|
||||
moduleGenerator.generateUnboundSymbolsAsDependencies(irProviders)
|
||||
|
||||
Reference in New Issue
Block a user