resolveExpression method
Dispatches this expression to the resolver
, with the given contextType
information.
Note: most code shouldn't call this method directly, but should instead
call ResolverVisitor.analyzeExpression
, which has some special logic for
handling dynamic contexts.
Implementation
@override
void resolveExpression(ResolverVisitor resolver, DartType contextType) {
staticType = resolver
.analyzeSwitchExpression(this, expression, cases.length, contextType)
.type;
resolver.popRewrite();
}