@@ -767,7 +767,7 @@ public void visit(MethodCallDesignatorStatement methodCallDesignatorStatement) {
767767 detectSemanticError (
768768 null ,
769769 methodCallDesignatorStatement ,
770- SemanticErrorKind .UNINVOKABLE_METHOD ,
770+ SemanticErrorKind .NON_INVOCABLE_METHOD ,
771771 invokedMethodSignatureGenerator .getMethodSignature (),
772772 classMethodSignature .getThisParameterType ());
773773 } else {
@@ -1173,7 +1173,7 @@ public void visit(MethodCallFactor methodCallFactor) {
11731173 detectSemanticError (
11741174 null ,
11751175 methodCallFactor ,
1176- SemanticErrorKind .UNINVOKABLE_METHOD ,
1176+ SemanticErrorKind .NON_INVOCABLE_METHOD ,
11771177 invokedMethodSignatureGenerator .getMethodSignature (),
11781178 classMethodSignature .getThisParameterType ());
11791179 } else {
@@ -1306,33 +1306,33 @@ public void visit(IdentDesignator identDesignator) {
13061306 }
13071307
13081308 @ Override
1309- public void visit (ArrayElemAccessDesignator arrayElemAcessDesignator ) {
1310- var array = arrayElemAcessDesignator .getDesignatorStart ().obj ;
1309+ public void visit (ArrayElemAccessDesignator arrayElemAccessDesignator ) {
1310+ var array = arrayElemAccessDesignator .getDesignatorStart ().obj ;
13111311 if (array .getType ().getKind () != Struct .Array ) {
13121312 if (!array .getType ().equals (MJTab .noType )) {
13131313 detectSemanticError (
1314- null , arrayElemAcessDesignator , SemanticErrorKind .INDEXING_NON_ARRAY , array .getType ());
1314+ null , arrayElemAccessDesignator , SemanticErrorKind .INDEXING_NON_ARRAY , array .getType ());
13151315 } else {
13161316 detectSemanticError ();
13171317 }
1318- arrayElemAcessDesignator .obj = MJTab .noObj ;
1318+ arrayElemAccessDesignator .obj = MJTab .noObj ;
13191319 } else {
1320- var indexType = arrayElemAcessDesignator .getExpr ().obj .getType ();
1320+ var indexType = arrayElemAccessDesignator .getExpr ().obj .getType ();
13211321 if (!indexType .equals (MJTab .intType )) {
13221322 detectSemanticError (
13231323 null ,
1324- arrayElemAcessDesignator ,
1324+ arrayElemAccessDesignator ,
13251325 SemanticErrorKind .TYPE_MISMATCH ,
13261326 indexType ,
13271327 MJTab .intType );
13281328 }
1329- arrayElemAcessDesignator .obj =
1329+ arrayElemAccessDesignator .obj =
13301330 new Obj (
13311331 Obj .Elem ,
13321332 "" ,
13331333 array .getType ().getElemType () != null ? array .getType ().getElemType () : MJTab .noType );
13341334 }
1335- symbolUsageMJLogger .log (array , arrayElemAcessDesignator .getLine (), null , array );
1335+ symbolUsageMJLogger .log (array , arrayElemAccessDesignator .getLine (), null , array );
13361336 }
13371337
13381338 @ Override
@@ -1396,36 +1396,36 @@ public void visit(IdentDesignatorStart identDesignatorStart) {
13961396 }
13971397
13981398 @ Override
1399- public void visit (ArrayElemAccessDesignatorStart arrayElemAcessDesignatorStart ) {
1400- var array = arrayElemAcessDesignatorStart .getDesignatorStart ().obj ;
1399+ public void visit (ArrayElemAccessDesignatorStart arrayElemAccessDesignatorStart ) {
1400+ var array = arrayElemAccessDesignatorStart .getDesignatorStart ().obj ;
14011401 if (array .getType ().getKind () != Struct .Array ) {
14021402 if (!array .getType ().equals (MJTab .noType )) {
14031403 detectSemanticError (
14041404 null ,
1405- arrayElemAcessDesignatorStart ,
1405+ arrayElemAccessDesignatorStart ,
14061406 SemanticErrorKind .INDEXING_NON_ARRAY ,
14071407 array .getType ());
14081408 } else {
14091409 detectSemanticError ();
14101410 }
1411- arrayElemAcessDesignatorStart .obj = MJTab .noObj ;
1411+ arrayElemAccessDesignatorStart .obj = MJTab .noObj ;
14121412 } else {
1413- var indexType = arrayElemAcessDesignatorStart .getExpr ().obj .getType ();
1413+ var indexType = arrayElemAccessDesignatorStart .getExpr ().obj .getType ();
14141414 if (!indexType .equals (MJTab .intType )) {
14151415 detectSemanticError (
14161416 null ,
1417- arrayElemAcessDesignatorStart ,
1417+ arrayElemAccessDesignatorStart ,
14181418 SemanticErrorKind .TYPE_MISMATCH ,
14191419 indexType ,
14201420 MJTab .intType );
14211421 }
1422- arrayElemAcessDesignatorStart .obj =
1422+ arrayElemAccessDesignatorStart .obj =
14231423 new Obj (
14241424 Obj .Elem ,
14251425 "" ,
14261426 array .getType ().getElemType () != null ? array .getType ().getElemType () : MJTab .noType );
14271427 }
1428- symbolUsageMJLogger .log (array , arrayElemAcessDesignatorStart .getLine (), null , array );
1428+ symbolUsageMJLogger .log (array , arrayElemAccessDesignatorStart .getLine (), null , array );
14291429 }
14301430
14311431 @ Override
0 commit comments