-
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.
Fixed parsing for expression ending with a parenthesis expression.
- Loading branch information
Showing
38 changed files
with
261 additions
and
10 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
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
11 changes: 11 additions & 0 deletions
11
...ge/fileStatement/urlEndsWithCloseParenthesis/urlEndsWithCloseParenthesis-expected-ast.txt
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,11 @@ | ||
|
||
header position 0..59 | ||
module myModule | ||
metamodel http://www.eclipse.org/emf/2002/Ecore (18..56) | ||
|
||
public template myTemplate(myParam : EPackage (89..114)) | ||
[file url .add(.aqlFeatureAccess(myParam, 'name'), '.txt') (126..148) mode overwrite | ||
some static text. (newLineNeeded) (167..185) (162..187) | ||
[/file] (119..194) | ||
(newLineNeeded) (194..195) (116..195) | ||
[/template] (61..206) (0..206) |
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions
7
...ources/language/fileStatement/urlEndsWithCloseParenthesis/urlEndsWithCloseParenthesis.mtl
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[file ((myParam.name + '.txt'), overwrite)] | ||
some static text. | ||
[/file] | ||
[/template] |
11 changes: 11 additions & 0 deletions
11
...tatement/bindingEndsWithCloseParenthesis/bindingEndsWithCloseParenthesis-expected-ast.txt
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,11 @@ | ||
|
||
header position 0..59 | ||
module myModule | ||
metamodel http://www.eclipse.org/emf/2002/Ecore (18..56) | ||
|
||
public template myTemplate(myParam : EPackage (89..114)) | ||
[for myVariable : EString = Sequence{'', '', '', } (155..176) (125..177) | ||
some static text. (newLineNeeded) (184..202) (179..204) | ||
[/for] (119..210) | ||
(newLineNeeded) (210..211) (116..211) | ||
[/template] (61..222) (0..222) |
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions
7
...language/forStatement/bindingEndsWithCloseParenthesis/bindingEndsWithCloseParenthesis.mtl
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[for (myVariable : ecore::EString | (Sequence{'', '', ''}))] | ||
some static text. | ||
[/for] | ||
[/template] |
11 changes: 11 additions & 0 deletions
11
...ment/conditionEndsWithCloseParenthesis/conditionEndsWithCloseParenthesis-expected-ast.txt
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,11 @@ | ||
|
||
header position 0..59 | ||
module myModule | ||
metamodel http://www.eclipse.org/emf/2002/Ecore (18..56) | ||
|
||
public template myTemplate(myParam : EPackage (89..114)) | ||
[if .equals(->size(.aqlFeatureAccess(myParam, 'eClassifiers')), 0) (124..157) | ||
some static text. (newLineNeeded) (165..183) (160..185) | ||
[/if] (119..190) | ||
(newLineNeeded) (190..191) (116..191) | ||
[/template] (61..202) (0..202) |
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions
7
...guage/ifStatement/conditionEndsWithCloseParenthesis/conditionEndsWithCloseParenthesis.mtl
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[if ((myParam.eClassifiers->size() = 0))] | ||
some static text. | ||
[/if] | ||
[/template] |
12 changes: 12 additions & 0 deletions
12
...tatement/bindingEndsWithCloseParenthesis/bindingEndsWithCloseParenthesis-expected-ast.txt
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,12 @@ | ||
|
||
header position 0..59 | ||
module myModule | ||
metamodel http://www.eclipse.org/emf/2002/Ecore (18..56) | ||
|
||
public template myTemplate(myParam : EPackage (89..114)) | ||
[let | ||
myVariable : EString = .aqlFeatureAccess(->first(.aqlFeatureAccess(myParam, 'eClassifiers')), 'name') (154..189) (124..190) | ||
some static text. (newLineNeeded) (196..214) (191..216) | ||
[/let] (119..222) | ||
(newLineNeeded) (222..223) (116..223) | ||
[/template] (61..234) (0..234) |
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions
7
...language/letStatement/bindingEndsWithCloseParenthesis/bindingEndsWithCloseParenthesis.mtl
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[let myVariable : ecore::EString = (myParam.eClassifiers->first().name)] | ||
some static text. | ||
[/let] | ||
[/template] |
12 changes: 12 additions & 0 deletions
12
...anguage/letStatement/closeParenthesisInBinding/closeParenthesisInBinding-expected-ast.txt
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,12 @@ | ||
|
||
header position 0..59 | ||
module myModule | ||
metamodel http://www.eclipse.org/emf/2002/Ecore (18..56) | ||
|
||
public template myTemplate(myParam : EPackage (89..114)) | ||
[let | ||
myVariable : EString = .add(->first(.aqlFeatureAccess(myParam, 'eClassifiers')), ')') (154..189) (124..189) | ||
some static text. (newLineNeeded) (195..213) (190..215) | ||
[/let] (119..221) | ||
(newLineNeeded) (221..222) (116..222) | ||
[/template] (61..233) (0..233) |
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions
7
...s/resources/language/letStatement/closeParenthesisInBinding/closeParenthesisInBinding.mtl
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[let myVariable : ecore::EString = myParam.eClassifiers->first() + ')'] | ||
some static text. | ||
[/let] | ||
[/template] |
11 changes: 11 additions & 0 deletions
11
...uage/protectedArea/idEndsWithCloseParenthesis/idEndsWithCloseParenthesis-expected-ast.txt
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,11 @@ | ||
|
||
header position 0..59 | ||
module myModule | ||
metamodel http://www.eclipse.org/emf/2002/Ecore (18..56) | ||
|
||
public template myTemplate(myParam : EPackage (89..114)) | ||
[protected .add(.aqlFeatureAccess(myParam, 'name'), ')') (131..149) | ||
some static text. (newLineNeeded) (156..174) (151..176) | ||
[/protected] (119..188) | ||
(newLineNeeded) (188..189) (116..189) | ||
[/template] (61..200) (0..200) |
Empty file.
Empty file.
7 changes: 7 additions & 0 deletions
7
...esources/language/protectedArea/idEndsWithCloseParenthesis/idEndsWithCloseParenthesis.mtl
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[protected (myParam.name + ')')] | ||
some static text. | ||
[/protected] | ||
[/template] |
6 changes: 6 additions & 0 deletions
6
...ry/expressionEndsWithCloseParenthesis/expressionEndsWithCloseParenthesis-expected-ast.txt
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,6 @@ | ||
|
||
header position 0..59 | ||
module myModule | ||
metamodel http://www.eclipse.org/emf/2002/Ecore (18..56) | ||
public query myQuery(myParam : EPackage (83..108)) ) : EClassifier ->first(.aqlFeatureAccess(myParam, 'eClassifiers')) (133..163) | ||
/] (61..166) (0..166) |
Empty file.
Empty file.
3 changes: 3 additions & 0 deletions
3
.../language/query/expressionEndsWithCloseParenthesis/expressionEndsWithCloseParenthesis.mtl
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[query public myQuery(myParam : ecore::EPackage) : ecore::EClassifier = (myParam.eClassifiers->first())/] |
7 changes: 7 additions & 0 deletions
7
...ge/fileStatement/urlEndsWithCloseParenthesis/urlEndsWithCloseParenthesis.mtl-expected.txt
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[file (myParam.name + '.txt', overwrite)] | ||
some static text. | ||
[/file] | ||
[/template] |
7 changes: 7 additions & 0 deletions
7
...tatement/bindingEndsWithCloseParenthesis/bindingEndsWithCloseParenthesis.mtl-expected.txt
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[for (myVariable : ecore::EString | Sequence{'', '', ''})] | ||
some static text. | ||
[/for] | ||
[/template] |
7 changes: 7 additions & 0 deletions
7
...ment/conditionEndsWithCloseParenthesis/conditionEndsWithCloseParenthesis.mtl-expected.txt
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[if (myParam.eClassifiers->size() = 0)] | ||
some static text. | ||
[/if] | ||
[/template] |
7 changes: 7 additions & 0 deletions
7
...tatement/bindingEndsWithCloseParenthesis/bindingEndsWithCloseParenthesis.mtl-expected.txt
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[let myVariable : ecore::EString = myParam.eClassifiers->first().name] | ||
some static text. | ||
[/let] | ||
[/template] |
7 changes: 7 additions & 0 deletions
7
...anguage/letStatement/closeParenthesisInBinding/closeParenthesisInBinding.mtl-expected.txt
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[let myVariable : ecore::EString = myParam.eClassifiers->first() + ')'] | ||
some static text. | ||
[/let] | ||
[/template] |
7 changes: 7 additions & 0 deletions
7
...uage/protectedArea/idEndsWithCloseParenthesis/idEndsWithCloseParenthesis.mtl-expected.txt
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[template public myTemplate(myParam : ecore::EPackage)] | ||
[protected (myParam.name + ')')] | ||
some static text. | ||
[/protected] | ||
[/template] |
3 changes: 3 additions & 0 deletions
3
...ry/expressionEndsWithCloseParenthesis/expressionEndsWithCloseParenthesis.mtl-expected.txt
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 @@ | ||
[module myModule('http://www.eclipse.org/emf/2002/Ecore')/] | ||
|
||
[query public myQuery(myParam : ecore::EPackage) : ecore::EClassifier = myParam.eClassifiers->first()/] |