mirror of
https://github.com/JonathanFleischmann/CompilerULTIMATE.git
synced 2024-12-29 07:08:03 +00:00
update TypedBoolLiteral
This commit is contained in:
parent
f38670ebd2
commit
47ecd27fef
@ -19,9 +19,6 @@ public class TypedBoolLiteral implements TypedExpression {
|
|||||||
private Boolean value;
|
private Boolean value;
|
||||||
private Type type;
|
private Type type;
|
||||||
|
|
||||||
public TypedBoolLiteral(Boolean value) {
|
|
||||||
this.value = value;
|
|
||||||
}
|
|
||||||
|
|
||||||
public TypedBoolLiteral(Map<String, Type> localVar, TypedClass clas, BoolLiteral unTypedBoolLiteral) {
|
public TypedBoolLiteral(Map<String, Type> localVar, TypedClass clas, BoolLiteral unTypedBoolLiteral) {
|
||||||
convertToTypedBoolLiteral(localVar, clas, unTypedBoolLiteral);
|
convertToTypedBoolLiteral(localVar, clas, unTypedBoolLiteral);
|
||||||
@ -34,7 +31,7 @@ public class TypedBoolLiteral implements TypedExpression {
|
|||||||
@Override
|
@Override
|
||||||
public Type typeCheck(Map<String, Type> localVar, TypedClass clas) {
|
public Type typeCheck(Map<String, Type> localVar, TypedClass clas) {
|
||||||
type = Type.BOOL;
|
type = Type.BOOL;
|
||||||
return Type.BOOL;
|
return type;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user