matheusgr/modeligado

Static representation

franklingg opened this issue · 2 comments

Is there a keyword for writing static methods/attributes? Something similar to this, maybe:

image

We need to upgrade the modeligado grammar for that.

I propose that each method/attribute can receive modifiers, and the first one should be static.

Example:

- static count : int
- color : int

gojs already has support for underline static method/attributes (

new go.Binding("isUnderline", "scope", function (s) { return s[0] === 'c' })),
). We just need to add the scope property with value 'c' on the static attribute/method.