Spacing.
This commit is contained in:
parent
1b0b434422
commit
fc45219058
|
@ -3524,16 +3524,16 @@ namespace ts {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function filterJsxAttributes(attributes: NodeArray<JsxAttribute|JsxSpreadAttribute>, symbols: Symbol[]): Symbol[] {
|
function filterJsxAttributes(attributes: NodeArray<JsxAttribute | JsxSpreadAttribute>, symbols: Symbol[]): Symbol[] {
|
||||||
let seenNames: Map<boolean> = {};
|
let seenNames: Map<boolean> = {};
|
||||||
for(let attr of attributes) {
|
for (let attr of attributes) {
|
||||||
if(attr.kind === SyntaxKind.JsxAttribute) {
|
if (attr.kind === SyntaxKind.JsxAttribute) {
|
||||||
seenNames[(<JsxAttribute>attr).name.text] = true;
|
seenNames[(<JsxAttribute>attr).name.text] = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
let result: Symbol[] = [];
|
let result: Symbol[] = [];
|
||||||
for(let sym of symbols) {
|
for (let sym of symbols) {
|
||||||
if(!seenNames[sym.name]) {
|
if (!seenNames[sym.name]) {
|
||||||
result.push(sym);
|
result.push(sym);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue