Skip to content

Fix Kotlin property access syntax in Yoga Java test files#1959

Closed
CalixTang wants to merge 1 commit into
react:mainfrom
CalixTang:export-D105191609
Closed

Fix Kotlin property access syntax in Yoga Java test files#1959
CalixTang wants to merge 1 commit into
react:mainfrom
CalixTang:export-D105191609

Conversation

@CalixTang

Copy link
Copy Markdown
Contributor

Summary:
D104666348 migrated the Yoga Java test files to Kotlin but left Java-style getter/setter method calls (e.g. node.setFlexDirection(...), node.getLayoutWidth(), node.getData()) which are invalid when calling Kotlin properties defined in YogaNode.kt.

This diff converts all such calls to Kotlin property access syntax:

  • node.setFlexDirection(x)node.flexDirection = x
  • node.getLayoutWidth()node.layoutWidth
  • node.isMeasureDefined()node.isMeasureDefined
  • node.setData(x)node.data = x
  • And similar for all other properties

Reviewed By: fkgozali, CalixTang

Differential Revision: D105191609

Summary:
D104666348 migrated the Yoga Java test files to Kotlin but left Java-style getter/setter method calls (e.g. `node.setFlexDirection(...)`, `node.getLayoutWidth()`, `node.getData()`) which are invalid when calling Kotlin properties defined in `YogaNode.kt`.

This diff converts all such calls to Kotlin property access syntax:
- `node.setFlexDirection(x)` → `node.flexDirection = x`
- `node.getLayoutWidth()` → `node.layoutWidth`
- `node.isMeasureDefined()` → `node.isMeasureDefined`
- `node.setData(x)` → `node.data = x`
- And similar for all other properties

Reviewed By: fkgozali, CalixTang

Differential Revision: D105191609
@vercel

vercel Bot commented May 14, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
yoga-website Ready Ready Preview, Comment May 14, 2026 6:38pm

Request Review

@meta-cla meta-cla Bot added the CLA Signed label May 14, 2026
@meta-codesync

meta-codesync Bot commented May 14, 2026

Copy link
Copy Markdown

@CalixTang has exported this pull request. If you are a Meta employee, you can view the originating Diff in D105191609.

@meta-codesync

meta-codesync Bot commented May 14, 2026

Copy link
Copy Markdown

This pull request has been merged in 5abc1c3.

@facebook-github-tools

Copy link
Copy Markdown

This pull request has been reverted by aa9c6fd.

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