Search in sources :

Example 1 with OptionalUnwrapOperator

use of dyvilx.tools.compiler.ast.expression.optional.OptionalUnwrapOperator in project Dyvil by Dyvil.

the class BindingIfStatement method resolveConditionTypes.

@Override
protected void resolveConditionTypes(MarkerList markers, IContext context) {
    final int size = this.variables.size();
    for (int i = 0; i < size; i++) {
        final IVariable var = this.variables.get(i);
        var.setValue(new OptionalUnwrapOperator(var.getValue(), true));
        var.resolveTypes(markers, this.varContext(i, context));
    }
    super.resolveConditionTypes(markers, this.varContext(size, context));
}
Also used : IVariable(dyvilx.tools.compiler.ast.field.IVariable) OptionalUnwrapOperator(dyvilx.tools.compiler.ast.expression.optional.OptionalUnwrapOperator)

Aggregations

OptionalUnwrapOperator (dyvilx.tools.compiler.ast.expression.optional.OptionalUnwrapOperator)1 IVariable (dyvilx.tools.compiler.ast.field.IVariable)1