Skip to content

Add simple SyntaxInfo builder methods#8709

Open
APickledWalrus wants to merge 2 commits into
dev/featurefrom
feature/simple-syntax-infos
Open

Add simple SyntaxInfo builder methods#8709
APickledWalrus wants to merge 2 commits into
dev/featurefrom
feature/simple-syntax-infos

Conversation

@APickledWalrus

Copy link
Copy Markdown
Member

Problem

I have seen some feedback (and experienced it myself) about the builder approach being a bit verbose when building a very simple syntax info.

Solution

Adds some utility simple methods to the SyntaxInfo classes. Consider:

syntaxRegistry.register(SyntaxRegistry.EFFECT, SyntaxInfo.builder(EffActionBar.class)
	.supplier(EffActionBar::new)
	.addPattern("send [the] action[ ]bar [with text] %object% [to %audiences%]")
	.build());

versus

syntaxRegistry.register(SyntaxRegistry.EFFECT, SyntaxInfo.simple(EffActionBar.class, EffActionBar::new,
	"send [the] action[ ]bar [with text] %object% [to %audiences%]"));

Testing Completed

Minor in-game testing of swapping an existing syntax

Supporting Information


Completes: none
Related: none
AI assistance: none

@APickledWalrus APickledWalrus requested a review from a team as a code owner June 17, 2026 16:52
@APickledWalrus APickledWalrus requested review from cheeezburga and erenkarakal and removed request for a team June 17, 2026 16:52
@skriptlang-automation skriptlang-automation Bot added needs reviews A PR that needs additional reviews needs triage An issue that hasn't been classified or verified yet labels Jun 17, 2026
@skriptlang-automation

This comment has been minimized.

@skriptlang-automation skriptlang-automation Bot added the feature Pull request adding a new feature. label Jun 17, 2026
@skriptlang-automation skriptlang-automation Bot removed the needs triage An issue that hasn't been classified or verified yet label Jun 17, 2026
@skriptlang-automation skriptlang-automation Bot moved this to In Review in 2.16 Releases Jun 17, 2026
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. needs reviews A PR that needs additional reviews

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

2 participants