mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-28 15:38:03 +00:00
Made a line code better to read
This commit is contained in:
parent
d55217e85a
commit
73102c9897
@ -37,8 +37,8 @@ public class TypedBlock implements TypedNode {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (var stmt : unTypedBlock.stmts()) {
|
for (var stmt : unTypedBlock.stmts()) {
|
||||||
if (stmt instanceof Declaration){
|
if (stmt instanceof Declaration declaration) {
|
||||||
vars.add(new TypedLocalVariable(typedProgram,(Declaration) stmt));
|
vars.add(new TypedLocalVariable(typedProgram, declaration));
|
||||||
}
|
}
|
||||||
if (stmt instanceof Assignment assignment) {
|
if (stmt instanceof Assignment assignment) {
|
||||||
TypedAssignment typedAssignment = new TypedAssignment(typedProgram, assignment);
|
TypedAssignment typedAssignment = new TypedAssignment(typedProgram, assignment);
|
||||||
|
Loading…
Reference in New Issue
Block a user