Update comments

This commit is contained in:
Yui T 2014-09-23 16:59:42 -07:00
parent 8f4ee917b2
commit c0eeafb0d8

View File

@ -1710,8 +1710,8 @@ module ts {
// not be accessed with a dot (a.1 <- invalid)
var firstCharCode = symbol.name.charCodeAt(0);
if ((symbol.flags & SymbolFlags.Namespace) && (firstCharCode === CharacterCodes.singleQuote || firstCharCode === CharacterCodes.doubleQuote)) {
// If the symbol is external module, don't retry the completion list
// Also name of modules is invalid in completion list (i.e declare module "http" { var x; } | // <= request completion here, "http" should not be there)
// If the symbol is external module, don't show it in the completion list
// (i.e declare module "http" { var x; } | // <= request completion here, "http" should not be there)
return undefined;
}