modified: src/main/java/de/dhbwstuttgart/parser/SyntaxTreeGenerator/SyntaxTreeGenerator.java
- 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
This commit is contained in:
parent
6cbabee65a
commit
5c1015b51e
@ -359,7 +359,7 @@ public class SyntaxTreeGenerator{
|
|||||||
&& fieldDeclarationContext.unannTypeOrAuto().unannType() != null){
|
&& fieldDeclarationContext.unannTypeOrAuto().unannType() != null){
|
||||||
fieldType = TypeGenerator.convert(fieldDeclarationContext.unannTypeOrAuto().unannType(), reg, generics);
|
fieldType = TypeGenerator.convert(fieldDeclarationContext.unannTypeOrAuto().unannType(), reg, generics);
|
||||||
}else{
|
}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()){
|
for(Java8Parser.VariableDeclaratorContext varCtx : fieldDeclarationContext.variableDeclaratorList().variableDeclarator()){
|
||||||
String fieldName = convert(varCtx.variableDeclaratorId());
|
String fieldName = convert(varCtx.variableDeclaratorId());
|
||||||
|
@ -3,7 +3,7 @@ import java.lang.Integer;
|
|||||||
|
|
||||||
public class Fac {
|
public class Fac {
|
||||||
|
|
||||||
getFac(n){
|
getFac(java.lang.Integer n){
|
||||||
var res = 1;
|
var res = 1;
|
||||||
var i = 1;
|
var i = 1;
|
||||||
while(i<=n) {
|
while(i<=n) {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
import java.lang.Integer;
|
import java.lang.Integer;
|
||||||
|
|
||||||
public class Field {
|
public class Field {
|
||||||
public Integer x = 5;
|
public x = 5;
|
||||||
|
|
||||||
m(){
|
m(){
|
||||||
return x;
|
return x;
|
||||||
|
Loading…
Reference in New Issue
Block a user