Skip to content
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

Replace comments mentioning Std.is with Std.isOfType #3263

Merged
merged 4 commits into from
Oct 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flixel/system/debug/console/ConsoleUtil.hx
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ class ConsoleUtil
else if (Reflect.isObject(Object)) // get instance fields
fields = Type.getInstanceFields(Type.getClass(Object));

// on Flash, enums are classes, so Std.is(_, Enum) fails
// on Flash, enums are classes, so Std.isOfType(_, Enum) fails
fields.remove("__constructs__");

var filteredFields = [];
Expand Down
2 changes: 1 addition & 1 deletion flixel/util/typeLimit/OneOfFour.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package flixel.util.typeLimit;
/**
* Useful to limit a Dynamic function argument's type to the specified
* type parameters. This does NOT make the use of Dynamic type-safe in
* any way (the underlying type is still Dynamic and Std.is() checks +
* any way (the underlying type is still Dynamic and Std.isOfType() checks +
* casts are necessary).
*/
abstract OneOfFour<T1, T2, T3, T4>(Dynamic) from T1 from T2 from T3 from T4 to T1 to T2 to T3 to T4 {}
2 changes: 1 addition & 1 deletion flixel/util/typeLimit/OneOfThree.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package flixel.util.typeLimit;
/**
* Useful to limit a Dynamic function argument's type to the specified
* type parameters. This does NOT make the use of Dynamic type-safe in
* any way (the underlying type is still Dynamic and Std.is() checks +
* any way (the underlying type is still Dynamic and Std.isOfType() checks +
* casts are necessary).
*/
abstract OneOfThree<T1, T2, T3>(Dynamic) from T1 from T2 from T3 to T1 to T2 to T3 {}
2 changes: 1 addition & 1 deletion flixel/util/typeLimit/OneOfTwo.hx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package flixel.util.typeLimit;
/**
* Useful to limit a Dynamic function argument's type to the specified
* type parameters. This does NOT make the use of Dynamic type-safe in
* any way (the underlying type is still Dynamic and Std.is() checks +
* any way (the underlying type is still Dynamic and Std.isOfType() checks +
* casts are necessary).
*/
abstract OneOfTwo<T1, T2>(Dynamic) from T1 from T2 to T1 to T2 {}
Loading