Repository navigation
Declaration modifiers: canonical block form, package visibility, UML vocabulary - #49
Merged
Merged
Conversation
…vocabulary
Implements the signed-off RS 3001 par. Declaration modifiers (lutaml
docs PR: spec/element-modifiers):
- canonical in-block declarations: `visibility {level}` in class/enum
bodies (flows through the generic attribute path) and
`abstract true|false` mapping onto `is_abstract`
- package declarations take the visibility prefix again: the `package`
visibility keyword is guarded by a declaration-keyword lookahead, so
`private package P { }` parses while bare `package P { }` still binds
as a package declaration
- vocabulary: `~` maps to UML 2.5 `package` visibility (was "friendly");
the GraphViz symbol table gains the `~` mapping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Implements the spec amendment signed off as D1–D5 (spec text landed in lutaml/docs
spec/element-modifiers, merged — RS 3001 par. Declaration modifiers + RS 3010 Operations).visibility {level}in class/enum bodies;abstract true|falsemaps ontois_abstract. The keyword prefix is now spec-defined sugar that expands to these.private package Ceramics { }parses. Thepackagevisibility keyword carries a declaration-keyword lookahead guard, so a barepackage P { }still binds as a package declaration andpackage class Foo { }stays a package-visible class.~now maps topackagevisibility (was"friendly"); GraphViz symbol table gains~.683 examples, 0 failures (5 new modifier specs).