Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 13 additions & 13 deletions vadl/main/vadl/ast/TypeChecker.java
Original file line number Diff line number Diff line change
Expand Up @@ -1762,14 +1762,14 @@ public Void visit(ModelDefinition definition) {

@Override
public Void visit(RecordTypeDefinition definition) {
throwUnimplemented(definition);
return null;
throw new IllegalStateException(
"No %s should ever reach the Typechecker".formatted(definition.getClass().getSimpleName()));
}

@Override
public Void visit(ModelTypeDefinition definition) {
throwUnimplemented(definition);
return null;
throw new IllegalStateException(
"No %s should ever reach the Typechecker".formatted(definition.getClass().getSimpleName()));
}

@Override
Expand Down Expand Up @@ -1814,9 +1814,9 @@ public Void visit(Parameter definition) {
}

@Override
public Void visit(GroupDefinition groupDefinition) {
throwUnimplemented(groupDefinition);
return null;
public Void visit(GroupDefinition definition) {
throw new IllegalStateException(
"No %s should ever reach the Typechecker".formatted(definition.getClass().getSimpleName()));
}

@Override
Expand Down Expand Up @@ -4285,20 +4285,20 @@ public Void visit(CallStatement statement) {

@Override
public Void visit(PlaceholderStatement statement) {
throwUnimplemented(statement);
return null;
throw new IllegalStateException(
"No %s should ever reach the Typechecker".formatted(statement.getClass().getSimpleName()));
}

@Override
public Void visit(MacroInstanceStatement statement) {
throwUnimplemented(statement);
return null;
throw new IllegalStateException(
"No %s should ever reach the Typechecker".formatted(statement.getClass().getSimpleName()));
}

@Override
public Void visit(MacroMatchStatement statement) {
throwUnimplemented(statement);
return null;
throw new IllegalStateException(
"No %s should ever reach the Typechecker".formatted(statement.getClass().getSimpleName()));
}

@Override
Expand Down
Loading