forked from JavaTX/JavaCompilerCore
Bug fixes, TestComplete in 'syntaxtreegenerator' runs without error
This commit is contained in:
parent
168a499811
commit
d48b888075
@ -284,9 +284,6 @@ public class StatementGenerator {
|
|||||||
genericArgs = null;
|
genericArgs = null;
|
||||||
if (createdname.typeArgumentsOrDiamond() != null)
|
if (createdname.typeArgumentsOrDiamond() != null)
|
||||||
genericArgs = createdname.typeArgumentsOrDiamond().typeArguments();
|
genericArgs = createdname.typeArgumentsOrDiamond().typeArguments();
|
||||||
if (genericArgs != null) {
|
|
||||||
throw new NotImplementedException();
|
|
||||||
}
|
|
||||||
IdentifierContext identifier = createdname.identifier();
|
IdentifierContext identifier = createdname.identifier();
|
||||||
return (RefType) TypeGenerator.convertTypeName(identifier.getText(), genericArgs, identifier.getStart(), reg, generics);
|
return (RefType) TypeGenerator.convertTypeName(identifier.getText(), genericArgs, identifier.getStart(), reg, generics);
|
||||||
}
|
}
|
||||||
|
@ -536,7 +536,7 @@ public class TestComplete {
|
|||||||
@Test
|
@Test
|
||||||
public void subMatTest() {
|
public void subMatTest() {
|
||||||
try {
|
try {
|
||||||
FileInputStream fileIn = new FileInputStream(javFiles.get("SimpSubMatrixeCycle")[1]);
|
FileInputStream fileIn = new FileInputStream(javFiles.get("SubMatrix")[1]);
|
||||||
String expectedAST = new String(fileIn.readAllBytes());
|
String expectedAST = new String(fileIn.readAllBytes());
|
||||||
fileIn.close();
|
fileIn.close();
|
||||||
expectedAST = expectedAST.replaceAll("TPH [A-Z]+", "TPH");
|
expectedAST = expectedAST.replaceAll("TPH [A-Z]+", "TPH");
|
||||||
|
Loading…
Reference in New Issue
Block a user