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

Improve CDDL syntax #870

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 3 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
8 changes: 4 additions & 4 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1612,7 +1612,7 @@ session.CapabilityRequest = {
? proxy: session.ProxyConfiguration,
? unhandledPromptBehavior: session.UserPromptHandler,
Extensible
};
}
caugner marked this conversation as resolved.
Show resolved Hide resolved
</pre>

The <code>session.CapabilityRequest</code> type represents a specific set of
Expand Down Expand Up @@ -1695,7 +1695,7 @@ session.PacProxyConfiguration = (
)

session.SystemProxyConfiguration = (
proxyType: "system"
proxyType: "system",
Copy link
Contributor

@OrKoN OrKoN Jan 28, 2025

Choose a reason for hiding this comment

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

Copy link
Author

Choose a reason for hiding this comment

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

@OrKoN Would you suggest adding commas on the last item as well (e.g. behind Extensible)?

Copy link
Contributor

Choose a reason for hiding this comment

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

In my opinion, this would at least help with future changes along those lines, ensuring that only the added or removed item is affected, rather than modifying an existing one just to add or remove a comma.

Copy link
Contributor

Choose a reason for hiding this comment

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

should we then keep trailing // for the same reason?

Extensible
)

Expand Down Expand Up @@ -2262,7 +2262,7 @@ BrowserCommand = (
browser.GetClientWindows //
browser.GetUserContexts //
browser.RemoveUserContext //
browser.SetClientWindowState //
browser.SetClientWindowState
)
</pre>

Expand Down Expand Up @@ -9702,7 +9702,7 @@ script.ContextTarget = {
script.Target = (
script.ContextTarget /
script.RealmTarget
);
)
</pre>

The <code>script.Target</code> type represents a value that is either a
Expand Down