typescript: fix build
Summary:
The previous two TypeScript changes conflicted with each other.
Resolve the conflict.
Reviewers: #core_team, fromberger
Subscribers: #core_team
@@ -267,6 +267,7 @@ class Vistor {
*/
visitVariableDeclaration(decl: {
name: ts.BindingName | ts.PropertyName,
+ type?: ts.TypeNode,
initializer?: ts.Expression,
}) {
if (decl.name.kind === ts.SyntaxKind.Identifier) {
@@ -311,7 +312,7 @@ class Vistor {
visitClassDeclaration(decl: ts.ClassDeclaration) {
if (decl.name) {
let sym = this.typeChecker.getSymbolAtLocation(decl.name);
- let kClass = this.getSymbolName(sym);
+ let kClass = this.getSymbolName(sym, TSNamespace.VALUE);
this.emitNode(kClass, 'record');
this.emitEdge(this.newAnchor(decl.name), 'defines/binding', kClass);
