use of dyvilx.tools.compiler.ast.reference.ImplicitReferenceType in project Dyvil by Dyvil.
the class PostfixType method resolveType.
@Override
public IType resolveType(MarkerList markers, IContext context) {
final String unqualified = this.name.unqualified;
final IType argument = this.arguments.get(0);
if (unqualified.length() == 1) {
switch(unqualified.charAt(0)) {
case '?':
return NullableType.apply(argument).resolveType(markers, context);
case '!':
return new ImplicitNullableType(argument).resolveType(markers, context);
case '*':
return new ReferenceType(argument).resolveType(markers, context);
case '^':
return new ImplicitReferenceType(argument).resolveType(markers, context);
}
}
return super.resolveType(markers, context);
}
Aggregations