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

Allow addons to use the %classinfo% value property expression. #7359

Merged
merged 4 commits into from
Jan 15, 2025

Conversation

Moderocky
Copy link
Member

Description

2.10 added an experimental %*classinfo% value property for config nodes.
I realised this is probably useful for things other than config nodes, particularly for addons that support stuff like data tags.

This adds an AnyValued type that things can extend (or register converters for!) that allows the %*classinfo% value property to be used in more places.

@Moderocky Moderocky changed the base branch from master to dev/feature January 2, 2025 18:59
@Moderocky Moderocky added the feature Pull request adding a new feature. label Jan 2, 2025
@@ -44,86 +43,99 @@
# timespan value of {_node} = 12 hours (duration)""",

})
@Since("2.10")
public class ExprNodeValue extends SimplePropertyExpression<Node, Object> {
@Since("2.10 (Nodes), INSERT VERSION (Any)")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@Since("2.10 (Nodes), INSERT VERSION (Any)")
@Since("2.10 (nodes), INSERT VERSION (any)")

}

/**
*
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
*

Comment on lines +23 to +24
@UnknownNullability
Type value();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
@UnknownNullability
Type value();
@UnknownNullability Type value();

@Moderocky Moderocky marked this pull request as ready for review January 15, 2025 10:16
@Moderocky Moderocky merged commit 469927a into SkriptLang:dev/feature Jan 15, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Pull request adding a new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants