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

[TASK] Use auto-generated hierarchy in class diagram #518

Merged
merged 1 commit into from
Mar 7, 2024
Merged
Changes from all 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
77 changes: 39 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -713,46 +713,47 @@ classDiagram
class Comment {
}

%% end of the generated part
RuleSet <|-- DeclarationBlock: inheritance
Renderable <|.. RuleSet: realization
Commentable <|.. RuleSet: realization
RuleSet <|-- AtRuleSet: inheritance
AtRule <|.. AtRuleSet: realization
Selector <|-- KeyframeSelector: inheritance
Renderable <|-- AtRule: inheritance
Commentable <|-- AtRule: inheritance
AtRule <|.. Charset: realization
AtRule <|.. Import: realization
AtRule <|.. CSSNamespace: realization
Renderable <|.. Rule: realization
Commentable <|.. Rule: realization
SourceException <|-- OutputException: inheritance
UnexpectedTokenException <|-- UnexpectedEOFException: inheritance
Exception <|-- SourceException: inheritance
Copy link
Contributor

Choose a reason for hiding this comment

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

Should inheritance from in-built classes be included?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

As far as I know, there is no option to configure this behavior. So if we want to automate this, I propose we stick to what the tool generates.

SourceException <|-- UnexpectedTokenException: inheritance
CSSList <|-- CSSBlockList: inheritance
CSSBlockList <|-- Document: inheritance
Renderable <|.. CSSList: realization
Commentable <|.. CSSList: realization
CSSList <|-- KeyFrame: inheritance
AtRule <|.. KeyFrame: realization
CSSBlockList <|-- AtRuleBlockList: inheritance
AtRule <|.. AtRuleBlockList: realization
CSSFunction <|-- Color: inheritance
PrimitiveValue <|-- URL: inheritance
RuleValueList <|-- CalcRuleValueList: inheritance
Value <|-- ValueList: inheritance
CSSFunction <|-- CalcFunction: inheritance
ValueList <|-- LineName: inheritance
Renderable <|.. Value: realization
PrimitiveValue <|-- Size: inheritance
PrimitiveValue <|-- CSSString: inheritance
Value <|-- PrimitiveValue: inheritance
ValueList <|-- CSSFunction: inheritance
ValueList <|-- RuleValueList: inheritance
Renderable <|.. Comment: realization

%% end of the generated part

AtRule --|> Commentable
AtRule --|> Renderable
AtRuleBlockList --|> CSSBlockList
AtRuleBlockList ..|> AtRule
AtRuleSet --|> RuleSet
AtRuleSet ..|> AtRule
CSSBlockList --|> CSSList
CSSFunction --|> ValueList
CSSList ..|> Commentable
CSSList ..|> Renderable
CSSNamespace ..|> AtRule
CSSString --|> PrimitiveValue
CalcFunction --|> CSSFunction
CalcRuleValueList --|> RuleValueList
Charset ..|> AtRule
Color --|> CSSFunction
Comment ..|> Renderable
DeclarationBlock --|> RuleSet
Document --|> CSSBlockList
Import ..|> AtRule
KeyFrame --|> CSSList
KeyFrame ..|> AtRule
KeyframeSelector --|> Selector
LineName --|> ValueList
OutputException --|> SourceException
PrimitiveValue --|> Value
Rule ..|> Commentable
Rule ..|> Renderable
RuleSet ..|> Commentable
RuleSet ..|> Renderable
RuleValueList --|> ValueList
Size --|> PrimitiveValue
URL --|> PrimitiveValue
UnexpectedEOFException --|> UnexpectedTokenException
UnexpectedTokenException --|> SourceException
Value ..|> Renderable
ValueList --|> Value

Anchor --> "1" ParserState : oParserState
CSSList --> "*" CSSList : aContents
Expand Down