From 511c0769ff2ac177b8fb6b00b93a5a66ad700c88 Mon Sep 17 00:00:00 2001 From: Mohamed Hegazy Date: Mon, 15 Sep 2014 13:52:17 -0700 Subject: [PATCH] fix typo --- src/services/services.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/services/services.ts b/src/services/services.ts index 26469a1fd1a..a792346a85a 100644 --- a/src/services/services.ts +++ b/src/services/services.ts @@ -1742,7 +1742,7 @@ module ts { return (SyntaxKind.FirstPunctuation <= kind && kind <= SyntaxKind.LastPunctuation); } - function isVisibleWithenDeclaration(symbol: Symbol, containingClass: Declaration): boolean { + function isVisibleWithinDeclaration(symbol: Symbol, containingClass: Declaration): boolean { var declaration = symbol.declarations && symbol.declarations[0]; return !(declaration && declaration.flags & NodeFlags.Private && containingClass !== declaration.parent); } @@ -1859,7 +1859,7 @@ module ts { if (symbol && symbol.flags & SymbolFlags.HasExports) { // Extract module or enum members forEachValue(symbol.exports, symbol => { - if (isVisibleWithenDeclaration(symbol, containingClass)) { + if (isVisibleWithinDeclaration(symbol, containingClass)) { symbols.push(symbol); } }); @@ -1871,7 +1871,7 @@ module ts { if (apparentType) { // Filter private properties forEach(apparentType.getApparentProperties(), symbol => { - if (isVisibleWithenDeclaration(symbol, containingClass)) { + if (isVisibleWithinDeclaration(symbol, containingClass)) { symbols.push(symbol); } });