Made a line code better to read

This commit is contained in:
Ahmad 2024-05-21 14:56:04 +02:00
parent d55217e85a
commit 73102c9897

View File

@ -37,8 +37,8 @@ public class TypedBlock implements TypedNode {
}
for (var stmt : unTypedBlock.stmts()) {
if (stmt instanceof Declaration){
vars.add(new TypedLocalVariable(typedProgram,(Declaration) stmt));
if (stmt instanceof Declaration declaration) {
vars.add(new TypedLocalVariable(typedProgram, declaration));
}
if (stmt instanceof Assignment assignment) {
TypedAssignment typedAssignment = new TypedAssignment(typedProgram, assignment);