TS: Convert an array to a ReadonlyArray<>.
Summary: This change is for (future) compatibility with TypeScript 2.5.
Reviewers: #core_team, evmar
Subscribers: #core_team
@@ -350,7 +350,7 @@ class Vistor {
return vname;
}
- visitTypeParameters(params: ts.TypeParameterDeclaration[]) {
+ visitTypeParameters(params: ReadonlyArray<ts.TypeParameterDeclaration>) {
for (const param of params) {
const sym = this.getSymbolAtLocation(param.name);
if (!sym) {
