rojo/src
Max d196c5091c
Simplify usage of attributes. (#574)
* Support implicit values for primitive attributes

This commit adds support for strings, numbers, and booleans to be implicitly typed in attribute maps, reducing the redundancy of needing to specify their types.

I also quietly adjusted one of the tests to use a more stable class/property pair. Since SourceAssetId is locked to Roblox, it could potentially disappear at any time.

* Apply formatting.

* Address feedback

* Backwards compatible format usage.

* Axe UnresolvedValueMap in favor of $attributes

Attributes can be defined directly on instances, with support for unambiguous types.

* Adjust test.

* to_string() -> into()

* Made attribute test more concise.

* small cleanup

* Update src/resolution.rs

* Update src/resolution.rs

* Update src/resolution.rs

* Update src/resolution.rs

Co-authored-by: Lucien Greathouse <me@lpghatguy.com>
2022-08-03 20:07:06 -04:00
..
cli Add --watch to sourcemap generation (#602) 2022-08-01 04:07:07 -04:00
snapshot Skip empty AppliedPatchSets for sending changes. 2022-08-03 17:19:23 -04:00
snapshot_middleware Simplify usage of attributes. (#574) 2022-08-03 20:07:06 -04:00
web Accept .luau files (#552) 2022-06-29 18:53:10 -04:00
auth_cookie.rs Fix clippy warnings 2019-10-17 18:22:53 -07:00
change_processor.rs Skip empty AppliedPatchSets for sending changes. 2022-08-03 17:19:23 -04:00
glob.rs Implement glob ignores (#272) 2020-01-08 17:58:37 -08:00
lib.rs Upgrade to rbx_dom_weak 2.0 (#377) 2021-02-18 20:56:09 -05:00
lua_ast.rs Code docs 2021-06-11 22:19:50 -04:00
main.rs Add profiling info and optional profiling with Tracy 2022-05-27 03:08:54 -04:00
message_queue.rs Remove unused dependencies and dead code warnings 2022-05-22 19:20:41 -04:00
multimap.rs Fix clippy warnings 2019-10-17 18:22:53 -07:00
path_serializer.rs Remove unused dependencies and dead code warnings 2022-05-22 19:20:41 -04:00
project.rs Simplify usage of attributes. (#574) 2022-08-03 20:07:06 -04:00
resolution.rs Simplify usage of attributes. (#574) 2022-08-03 20:07:06 -04:00
serve_session.rs Major Performance Improvements (#548) 2022-06-05 17:47:31 -04:00
session_id.rs Fix clippy warnings 2019-10-17 18:22:53 -07:00
tree_view.rs Code docs 2021-06-11 22:19:50 -04:00