mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-16 05:58:32 -06:00
Remove unused
This commit is contained in:
parent
0380f3f38e
commit
1b60a97bed
@ -1435,30 +1435,6 @@ namespace ts {
|
||||
return getNamedClassMembers(classDeclaration).filter(member => getModifierFlags(member) & ModifierFlags.Abstract);
|
||||
}
|
||||
|
||||
/*
|
||||
function getMembersAndStartPosFromReference(variableDeclaration: VariableDeclaration): { startPos: number, members: string[] } {
|
||||
const children = variableDeclaration.getChildren();
|
||||
const variableMembers: string[] = [];
|
||||
let startPos = 0;
|
||||
|
||||
ts.forEach(children, child => {
|
||||
if (child.kind === SyntaxKind.ObjectLiteralExpression) {
|
||||
const properties = (<ObjectLiteralExpression>child).properties;
|
||||
if (properties) {
|
||||
startPos = properties.pos;
|
||||
}
|
||||
for (let j = 0; properties && j < properties.length; j++) {
|
||||
if (properties[j].name) {
|
||||
variableMembers.push(properties[j].name.getText());
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return { startPos: startPos, members: variableMembers };
|
||||
}
|
||||
*/
|
||||
|
||||
function getDefaultValue(kind: SyntaxKind): string {
|
||||
switch (kind) {
|
||||
case SyntaxKind.StringKeyword:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user