Skip to content

Lower and normalize newly generated lambda types in ObjectiveCKmpMethodTranslator#2794

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_940580971
Open

Lower and normalize newly generated lambda types in ObjectiveCKmpMethodTranslator#2794
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_940580971

Conversation

@copybara-service

Copy link
Copy Markdown

Lower and normalize newly generated lambda types in ObjectiveCKmpMethodTranslator

  • Run Functionizer on newly introduced lambda classes so static method calls inside lambda bodies are lowered to C function calls.
  • Run InitializationNormalizer on newly introduced lambda classes so dynamic static instance initializers (new_..._init()) are moved into + (void)initialize, conforming to C constant initializer rules.
  • Visit ClassInstanceCreation nodes across the compilation unit so newly generated lambda allocations are properly updated.

…odTranslator

- Run Functionizer on newly introduced lambda classes so static method calls inside lambda bodies are lowered to C function calls.
- Run InitializationNormalizer on newly introduced lambda classes so dynamic static instance initializers (`new_..._init()`) are moved into `+ (void)initialize`, conforming to C constant initializer rules.
- Visit ClassInstanceCreation nodes across the compilation unit so newly generated lambda allocations are properly updated.

PiperOrigin-RevId: 940580971
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant