-
-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(aliasing): tests import aliasing
Signed-off-by: sanketshevkar <[email protected]>
- Loading branch information
1 parent
85366be
commit 0c99609
Showing
14 changed files
with
2,350 additions
and
2,044 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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,5 @@ | ||
namespace [email protected] | ||
concept Child { | ||
o Integer age | ||
} | ||
scalar MyString extends String |
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 @@ | ||
@test(Kid) | ||
namespace [email protected] | ||
|
||
import [email protected].{MyString as Str, Child as Kid} | ||
|
||
@test(Kid) | ||
concept Child extends Kid { | ||
@test(Kid) | ||
o Kid kid | ||
o Str str | ||
} | ||
|
||
concept Student extends Child { | ||
o Str schoolName | ||
o Str name | ||
o Child myChild | ||
} | ||
|
||
@test(Kid) | ||
map KidIndex { | ||
o Str | ||
@test(Kid) | ||
o Kid | ||
} |
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 |
---|---|---|
@@ -1 +1,166 @@ | ||
{"$class":"[email protected]","models":[{"$class":"[email protected]","decorators":[],"namespace":"org.vehicle","imports":[],"declarations":[{"$class":"[email protected]","name":"Manufactured","isAbstract":true,"properties":[],"location":{"$class":"[email protected]","start":{"offset":23,"line":3,"column":1,"$class":"[email protected]"},"end":{"offset":56,"line":4,"column":2,"$class":"[email protected]"}}},{"$class":"[email protected]","name":"Vehicle","isAbstract":true,"properties":[{"$class":"[email protected]","name":"name","isArray":false,"isOptional":false,"location":{"$class":"[email protected]","start":{"offset":108,"line":7,"column":3,"$class":"[email protected]"},"end":{"offset":124,"line":8,"column":3,"$class":"[email protected]"}}},{"$class":"[email protected]","name":"range","isArray":false,"isOptional":false,"location":{"$class":"[email protected]","start":{"offset":124,"line":8,"column":3,"$class":"[email protected]"},"end":{"offset":139,"line":9,"column":1,"$class":"[email protected]"}}}],"location":{"$class":"[email protected]","start":{"offset":58,"line":6,"column":1,"$class":"[email protected]"},"end":{"offset":140,"line":9,"column":2,"$class":"[email protected]"}},"superType":{"$class":"[email protected]","name":"Manufactured","namespace":"org.vehicle"}}]},{"$class":"[email protected]","decorators":[],"namespace":"org.car","imports":[{"$class":"[email protected]","namespace":"org.vehicle"}],"declarations":[{"$class":"[email protected]","name":"Car","isAbstract":false,"properties":[{"$class":"[email protected]","name":"mileage","isArray":false,"isOptional":false,"location":{"$class":"[email protected]","start":{"offset":73,"line":6,"column":3,"$class":"[email protected]"},"end":{"offset":90,"line":7,"column":1,"$class":"[email protected]"}}}],"location":{"$class":"[email protected]","start":{"offset":41,"line":5,"column":1,"$class":"[email protected]"},"end":{"offset":91,"line":7,"column":2,"$class":"[email protected]"}},"superType":{"$class":"[email protected]","name":"Vehicle","namespace":"org.vehicle"}}]}]} | ||
{ | ||
"$class": "[email protected]", | ||
"models": [ | ||
{ | ||
"$class": "[email protected]", | ||
"decorators": [], | ||
"namespace": "org.vehicle", | ||
"imports": [], | ||
"declarations": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Manufactured", | ||
"isAbstract": true, | ||
"properties": [], | ||
"location": { | ||
"$class": "[email protected]", | ||
"start": { | ||
"offset": 23, | ||
"line": 3, | ||
"column": 1, | ||
"$class": "[email protected]" | ||
}, | ||
"end": { | ||
"offset": 56, | ||
"line": 4, | ||
"column": 2, | ||
"$class": "[email protected]" | ||
} | ||
} | ||
}, | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Vehicle", | ||
"isAbstract": true, | ||
"properties": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "name", | ||
"isArray": false, | ||
"isOptional": false, | ||
"location": { | ||
"$class": "[email protected]", | ||
"start": { | ||
"offset": 108, | ||
"line": 7, | ||
"column": 3, | ||
"$class": "[email protected]" | ||
}, | ||
"end": { | ||
"offset": 124, | ||
"line": 8, | ||
"column": 3, | ||
"$class": "[email protected]" | ||
} | ||
} | ||
}, | ||
{ | ||
"$class": "[email protected]", | ||
"name": "range", | ||
"isArray": false, | ||
"isOptional": false, | ||
"location": { | ||
"$class": "[email protected]", | ||
"start": { | ||
"offset": 124, | ||
"line": 8, | ||
"column": 3, | ||
"$class": "[email protected]" | ||
}, | ||
"end": { | ||
"offset": 139, | ||
"line": 9, | ||
"column": 1, | ||
"$class": "[email protected]" | ||
} | ||
} | ||
} | ||
], | ||
"location": { | ||
"$class": "[email protected]", | ||
"start": { | ||
"offset": 58, | ||
"line": 6, | ||
"column": 1, | ||
"$class": "[email protected]" | ||
}, | ||
"end": { | ||
"offset": 140, | ||
"line": 9, | ||
"column": 2, | ||
"$class": "[email protected]" | ||
} | ||
}, | ||
"superType": { | ||
"$class": "[email protected]", | ||
"name": "Manufactured", | ||
"namespace": "org.vehicle", | ||
"resolvedName": "Manufactured" | ||
} | ||
} | ||
] | ||
}, | ||
{ | ||
"$class": "[email protected]", | ||
"decorators": [], | ||
"namespace": "org.car", | ||
"imports": [ | ||
{ | ||
"$class": "[email protected]", | ||
"namespace": "org.vehicle" | ||
} | ||
], | ||
"declarations": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "Car", | ||
"isAbstract": false, | ||
"properties": [ | ||
{ | ||
"$class": "[email protected]", | ||
"name": "mileage", | ||
"isArray": false, | ||
"isOptional": false, | ||
"location": { | ||
"$class": "[email protected]", | ||
"start": { | ||
"offset": 73, | ||
"line": 6, | ||
"column": 3, | ||
"$class": "[email protected]" | ||
}, | ||
"end": { | ||
"offset": 90, | ||
"line": 7, | ||
"column": 1, | ||
"$class": "[email protected]" | ||
} | ||
} | ||
} | ||
], | ||
"location": { | ||
"$class": "[email protected]", | ||
"start": { | ||
"offset": 41, | ||
"line": 5, | ||
"column": 1, | ||
"$class": "[email protected]" | ||
}, | ||
"end": { | ||
"offset": 91, | ||
"line": 7, | ||
"column": 2, | ||
"$class": "[email protected]" | ||
} | ||
}, | ||
"superType": { | ||
"$class": "[email protected]", | ||
"name": "Vehicle", | ||
"namespace": "org.vehicle", | ||
"resolvedName": "Vehicle" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} |
Oops, something went wrong.