-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(resolve): resolve namespace for decorators on primitives
Signed-off-by: Dan Selman <[email protected]>
- Loading branch information
Showing
8 changed files
with
366 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"$class": "[email protected]", | ||
"decorators": [], | ||
"namespace": "[email protected]", | ||
"imports": [], | ||
"declarations": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Category", | ||
"isAbstract": true, | ||
"properties": [] | ||
}, | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Engineering", | ||
"isAbstract": false, | ||
"properties": [], | ||
"superType": { | ||
"$class": "[email protected]", | ||
"name": "Category" | ||
} | ||
} | ||
] | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
{ | ||
"$class": "[email protected]", | ||
"decorators": [], | ||
"namespace": "[email protected]", | ||
"imports": [ | ||
{ | ||
"$class": "[email protected]", | ||
"namespace": "[email protected]", | ||
"types": [ | ||
"Engineering" | ||
] | ||
} | ||
], | ||
"declarations": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Car", | ||
"isAbstract": false, | ||
"properties": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "part", | ||
"type": { | ||
"$class": "[email protected]", | ||
"name": "Part" | ||
}, | ||
"isArray": false, | ||
"isOptional": false | ||
} | ||
] | ||
}, | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Part", | ||
"isAbstract": true, | ||
"properties": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "name", | ||
"isArray": false, | ||
"isOptional": false, | ||
"decorators": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "category", | ||
"arguments": [ | ||
{ | ||
"$class": "[email protected]", | ||
"type": { | ||
"$class": "[email protected]", | ||
"name": "Engineering" | ||
}, | ||
"isArray": false | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Wheel", | ||
"isAbstract": false, | ||
"properties": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "diameter", | ||
"isArray": false, | ||
"isOptional": false | ||
} | ||
], | ||
"superType": { | ||
"$class": "[email protected]", | ||
"name": "Part" | ||
} | ||
} | ||
] | ||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
namespace [email protected] | ||
|
||
abstract concept Category {} | ||
concept Engineering extends Category {} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
namespace [email protected] | ||
|
||
import [email protected].{Engineering} | ||
|
||
concept Car { | ||
o Part part | ||
} | ||
|
||
abstract concept Part { | ||
@category(Engineering) | ||
o String name | ||
} | ||
|
||
concept Wheel extends Part { | ||
o Double diameter | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
{ | ||
"$class": "[email protected]", | ||
"models": [ | ||
{ | ||
"$class": "[email protected]", | ||
"decorators": [], | ||
"namespace": "[email protected]", | ||
"imports": [], | ||
"declarations": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Category", | ||
"isAbstract": true, | ||
"properties": [] | ||
}, | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Engineering", | ||
"isAbstract": false, | ||
"properties": [], | ||
"superType": { | ||
"$class": "[email protected]", | ||
"name": "Category" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"$class": "[email protected]", | ||
"decorators": [], | ||
"namespace": "[email protected]", | ||
"imports": [ | ||
{ | ||
"$class": "[email protected]", | ||
"namespace": "[email protected]", | ||
"types": [ | ||
"Engineering" | ||
] | ||
} | ||
], | ||
"declarations": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Car", | ||
"isAbstract": false, | ||
"properties": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "part", | ||
"type": { | ||
"$class": "[email protected]", | ||
"name": "Part" | ||
}, | ||
"isArray": false, | ||
"isOptional": false | ||
} | ||
] | ||
}, | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Part", | ||
"isAbstract": true, | ||
"properties": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "name", | ||
"isArray": false, | ||
"isOptional": false, | ||
"decorators": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "category", | ||
"arguments": [ | ||
{ | ||
"$class": "[email protected]", | ||
"type": { | ||
"$class": "[email protected]", | ||
"name": "Engineering" | ||
}, | ||
"isArray": false | ||
} | ||
] | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Wheel", | ||
"isAbstract": false, | ||
"properties": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "diameter", | ||
"isArray": false, | ||
"isOptional": false | ||
} | ||
], | ||
"superType": { | ||
"$class": "[email protected]", | ||
"name": "Part" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.