Search in sources :

Example 1 with BBuiltInRefType

use of org.wso2.ballerinalang.compiler.semantics.model.types.BBuiltInRefType in project ballerina by ballerina-lang.

the class SemanticAnalyzer method validateTransformerMappingType.

private void validateTransformerMappingType(BLangVariable param) {
    BType type = param.type;
    if (types.isValueType(type) || (type instanceof BBuiltInRefType) || type.tag == TypeTags.STRUCT) {
        return;
    }
    dlog.error(param.pos, DiagnosticCode.TRANSFORMER_UNSUPPORTED_TYPES, type);
}
Also used : BType(org.wso2.ballerinalang.compiler.semantics.model.types.BType) BBuiltInRefType(org.wso2.ballerinalang.compiler.semantics.model.types.BBuiltInRefType)

Aggregations

BBuiltInRefType (org.wso2.ballerinalang.compiler.semantics.model.types.BBuiltInRefType)1 BType (org.wso2.ballerinalang.compiler.semantics.model.types.BType)1