Based on comments in https://github.com/dart-lang/linter/pull/2823, the method `LinterContext.resolveNameInScope` appears to not resolve the names of type parameters.