Merge branch 'simplifyRes' of uhl@gohorb.ba-horb.de:/bahome/projekt/git/JavaCompilerCore into simplifyRes

This commit is contained in:
michael 2019-12-06 20:22:52 +01:00
commit 835f0755da
3 changed files with 3 additions and 3 deletions

View File

@ -359,7 +359,7 @@ public class SyntaxTreeGenerator{
&& fieldDeclarationContext.unannTypeOrAuto().unannType() != null){
fieldType = TypeGenerator.convert(fieldDeclarationContext.unannTypeOrAuto().unannType(), reg, generics);
}else{
fieldType = TypePlaceholder.fresh(fieldDeclarationContext.getStart());
fieldType = TypePlaceholder.fresh(fieldDeclarationContext.variableDeclaratorList().getStart()); //PL 2019-12-06: variableDeclaratorList() eingefuegt, um als Token nicht die Modifier zu bekommen
}
for(Java8Parser.VariableDeclaratorContext varCtx : fieldDeclarationContext.variableDeclaratorList().variableDeclarator()){
String fieldName = convert(varCtx.variableDeclaratorId());

View File

@ -3,7 +3,7 @@ import java.lang.Integer;
public class Fac {
getFac(n){
getFac(java.lang.Integer n){
var res = 1;
var i = 1;
while(i<=n) {

View File

@ -1,7 +1,7 @@
import java.lang.Integer;
public class Field {
public Integer x = 5;
public x = 5;
m(){
return x;