diff --git a/src/services/services.ts b/src/services/services.ts index 7675b31071..e5a5266e11 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -3524,16 +3524,16 @@ namespace ts { } } - function filterJsxAttributes(attributes: NodeArray, symbols: Symbol[]): Symbol[] { + function filterJsxAttributes(attributes: NodeArray, symbols: Symbol[]): Symbol[] { let seenNames: Map = {}; - for(let attr of attributes) { - if(attr.kind === SyntaxKind.JsxAttribute) { + for (let attr of attributes) { + if (attr.kind === SyntaxKind.JsxAttribute) { seenNames[(attr).name.text] = true; } } let result: Symbol[] = []; - for(let sym of symbols) { - if(!seenNames[sym.name]) { + for (let sym of symbols) { + if (!seenNames[sym.name]) { result.push(sym); } }