forked from JavaTX/JavaCompilerCore
11 lines
346 B
Java
11 lines
346 B
Java
|
package de.dhbwstuttgart.target.tree.expression;
|
||
|
|
||
|
import de.dhbwstuttgart.target.tree.type.TargetType;
|
||
|
|
||
|
public record TargetGuard(TargetPattern inner, TargetExpression expression) implements TargetPattern {
|
||
|
@Override
|
||
|
public TargetGuard withType(TargetType type) {
|
||
|
return new TargetGuard(inner.withType(type), expression);
|
||
|
}
|
||
|
}
|