-
-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
avm2: Port Vector classes to AS #19393
avm2: Port Vector classes to AS #19393
Conversation
4c35681
to
bb3980e
Compare
@@ -279,6 +284,13 @@ fn rust_method_name_and_path( | |||
let name = resolve_multiname_name(abc, trait_name).to_string(); | |||
|
|||
path += &flash_to_rust_string(&name, false, "::"); | |||
|
|||
match &trait_.kind { | |||
TraitKind::Getter { .. } => flash_method_path += "get ", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be sure, what was this added for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes around naming were to have correct method names in stack traces. Without the two changes, the DisplayObject blendMode setter would display as flash.display::DisplayObject/flash::display::DisplayObject::blendMode()
. Now it displays as flash.display::DisplayObject/set blendMode()
, matching FP.
This implements all the necessary machinery to do so with the rest of the Vector$ classes
57b258d
to
a29c5f7
Compare
This unblocks porting Number, uint, and int to AS