refactor(language-service): adds Symbol#typeArguments and does cleanup (#34571)

Adds a `typeArguments` method to the `Symbol` interface, cleaning up how
type parameters of a TypeScript type are currently found. This will be
necessary for providing completions for `$event` variables' properties
(#34570).

This commit also performs some fly-by cleanups seen while implementing
the `typeArguments` methods. There is more clean up to do in the
`typescript_symbols` file, but the scope of this commit didn't need to
get larger.

PR Close #34571
This commit is contained in:
ayazhafiz
2019-12-26 15:51:49 -06:00
committed by atscott
parent 15b4173a76
commit 7325053dfa
5 changed files with 63 additions and 58 deletions

View File

@ -59,6 +59,7 @@ export const createGlobalSymbolTable: (query: ng.SymbolQuery) => ng.SymbolTable
};
},
indexed: () => undefined,
typeArguments: () => undefined,
},
},
]);