Skip to content

Commit be2f832

Browse files
committed
Improve naming in PArrayType
1 parent 60fe940 commit be2f832

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/compiler-frontend/src/main/java/org/smoothbuild/compilerfrontend/compile/ast/define/PArrayType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public PArrayType(PExplicitType elementType, Location location) {
1010
this.elementType = elementType;
1111
}
1212

13-
public PExplicitType elemT() {
13+
public PExplicitType elementType() {
1414
return elementType;
1515
}
1616
}

src/compiler-frontend/src/main/java/org/smoothbuild/compilerfrontend/compile/ast/define/PExplicitType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ protected PExplicitType(String nameText, Location location) {
1414

1515
public SType infer() {
1616
return switch (this) {
17-
case PArrayType a -> new SArrayType(a.elemT().infer());
17+
case PArrayType a -> new SArrayType(a.elementType().infer());
1818
case PFuncType f -> translateFunc(f);
1919
case PTypeReference r -> r.referenced().type();
2020
case PTupleType t -> new STupleType(t.elementTypes().map(PExplicitType::infer));

src/compiler-frontend/src/main/java/org/smoothbuild/compilerfrontend/compile/task/GenerateFqns.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public void visit(PContainer pContainer) {
7575
@Override
7676
public void visitType(PType pType) throws RuntimeException {
7777
switch (pType) {
78-
case PArrayType pArrayType -> visitType(pArrayType.elemT());
78+
case PArrayType pArrayType -> visitType(pArrayType.elementType());
7979
case PFuncType pFuncType -> {
8080
visitType(pFuncType.result());
8181
pFuncType.params().forEach(this::visitType);

src/compiler-frontend/src/main/java/org/smoothbuild/compilerfrontend/compile/task/ResolveReferences.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void visitItem(PItem pItem) throws RuntimeException {
6969
@Override
7070
public void visitType(PType pType) {
7171
switch (pType) {
72-
case PArrayType array -> visitType(array.elemT());
72+
case PArrayType array -> visitType(array.elementType());
7373
case PFuncType func -> visitFuncType(func);
7474
case PTupleType tuple -> visitTupleType(tuple);
7575
case PTypeReference pTypeReference -> visitExplicitType(pTypeReference);

src/compiler-frontend/src/main/java/org/smoothbuild/compilerfrontend/compile/task/SortModuleMembersByDependency.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ public void visitStructSignature(PStruct pStruct) {
107107

108108
private void addToDeps(PType pType) {
109109
switch (pType) {
110-
case PArrayType arrayT -> addToDeps(arrayT.elemT());
110+
case PArrayType arrayT -> addToDeps(arrayT.elementType());
111111
case PFuncType funcT -> {
112112
addToDeps(funcT.result());
113113
funcT.params().forEach(this::addToDeps);

0 commit comments

Comments
 (0)