forked from eclipse-epsilon/epsilon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b30d82
commit 9fbda17
Showing
12 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
3 changes: 1 addition & 2 deletions
3
...ilon.eol.staticanalyser.tests/src/org/eclipse/epsilon/eol/staticanalyser/tests/.gitignore
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,2 +1 @@ | ||
*.eol | ||
*.model | ||
*.model |
5 changes: 5 additions & 0 deletions
5
.../eclipse/epsilon/eol/staticanalyser/tests/scripts/collectionTypesAssignmentExpression.eol
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 @@ | ||
var col : Collection<Integer> = Collection{0..9}; | ||
var seq : Sequence<Integer> = Sequence{0..9}; | ||
var bg : Bag<Integer> = Bag{0..9}; | ||
(/*Collection<Integer>*/col) = (/*Bag<Integer>*/bg); | ||
(/*Collection<Integer>*/col) = (/*Sequence<Integer>*/seq); |
3 changes: 3 additions & 0 deletions
3
...canalyser.tests/src/org/eclipse/epsilon/eol/staticanalyser/tests/scripts/modelAliases.eol
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,3 @@ | ||
model M alias X driver EMF {nsuri='http://www.eclipse.org/emf/2002/Ecore'}; | ||
|
||
var i:X!EClass = new X!EClass; |
3 changes: 3 additions & 0 deletions
3
...s/src/org/eclipse/epsilon/eol/staticanalyser/tests/scripts/modelElementTypeAssignment.eol
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,3 @@ | ||
model M driver EMF {nsuri='http://www.eclipse.org/emf/2002/Ecore'}; | ||
|
||
var i:M!EClass = new M!EClass; |
3 changes: 3 additions & 0 deletions
3
.../eclipse/epsilon/eol/staticanalyser/tests/scripts/modelElementTypeVariableDeclaration.eol
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,3 @@ | ||
model M driver EMF {nsuri='http://www.eclipse.org/emf/2002/Ecore'}; | ||
|
||
var i:M!EClass; |
3 changes: 3 additions & 0 deletions
3
...r.tests/src/org/eclipse/epsilon/eol/staticanalyser/tests/scripts/multipleModelAliases.eol
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,3 @@ | ||
model M alias X,Y driver EMF {nsuri='http://www.eclipse.org/emf/2002/Ecore'}; | ||
|
||
var i:Y!EClass = new Y!EClass; |
9 changes: 9 additions & 0 deletions
9
....tests/src/org/eclipse/epsilon/eol/staticanalyser/tests/scripts/multiplePossibleTypes.eol
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,9 @@ | ||
model M driver EMF {nsuri='sa'}; | ||
|
||
for (a in A.all) { | ||
var v1:A = a.foo(); | ||
var v2:A = v1.foo(); | ||
} | ||
|
||
operation B foo() : B {return self;} | ||
operation C foo() : C {return self;} |
7 changes: 7 additions & 0 deletions
7
...e/epsilon/eol/staticanalyser/tests/scripts/operationCallExpressionWithSubclassContext.eol
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,7 @@ | ||
model M driver EMF {nsuri='sa'}; | ||
|
||
for (a in A.all) { | ||
var v1:A = a.foo(); | ||
} | ||
|
||
operation B foo() : B {return self;} |
3 changes: 3 additions & 0 deletions
3
...lipse/epsilon/eol/staticanalyser/tests/scripts/operationReturnsSequenceOfSequenceType.eol
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,3 @@ | ||
var v:Sequence<Sequence<Integer>>; | ||
v = op(); | ||
operation op():Sequence<Sequence<Integer>>{return Sequence{Sequence{1,2,3}};} |
4 changes: 4 additions & 0 deletions
4
...src/org/eclipse/epsilon/eol/staticanalyser/tests/scripts/operationReturnsSequenceType.eol
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 @@ | ||
var v : Integer; | ||
v = op().f(); | ||
operation op():Sequence<Integer>{return Sequence{1,2,3};} | ||
operation Sequence f():Integer{return 1;} |
5 changes: 5 additions & 0 deletions
5
...g/eclipse/epsilon/eol/staticanalyser/tests/scripts/primitiveTypesAssignmentExpression.eol
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 @@ | ||
var i : Integer = 4; | ||
var s : String = 'test'; | ||
(/*Integer*/i) = 5; | ||
var a : Any = true; | ||
(/*Any*/ a) = (/*String*/s); |
5 changes: 5 additions & 0 deletions
5
....tests/src/org/eclipse/epsilon/eol/staticanalyser/tests/scripts/typeResolutionWithAll.eol
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 @@ | ||
model M driver EMF {nsuri='sa'}; | ||
|
||
for (x in B.all) { | ||
var v = (/*B*/x); | ||
} |