Skip to content

Commit 6136c7c

Browse files
committed
remove comments
1 parent 05c993b commit 6136c7c

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11802,7 +11802,7 @@ namespace ts {
1180211802
return getReducedType(getApparentType(getReducedType(type)));
1180311803
}
1180411804

11805-
function createUnionOrIntersectionProperty(containingType: UnionOrIntersectionType, name: __String, skipObjectFunctionPropertyAugment?: boolean): Symbol | undefined { // candidate
11805+
function createUnionOrIntersectionProperty(containingType: UnionOrIntersectionType, name: __String, skipObjectFunctionPropertyAugment?: boolean): Symbol | undefined {
1180611806
let singleProp: Symbol | undefined;
1180711807
let propSet: ESMap<SymbolId, Symbol> | undefined;
1180811808
let indexTypes: Type[] | undefined;

src/services/completions.ts

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2213,22 +2213,12 @@ namespace ts.Completions {
22132213
canGetType = isExpression(rootDeclaration.parent.parent) && !!typeChecker.getContextualType(rootDeclaration.parent.parent as Expression);
22142214
}
22152215
}
2216-
if (canGetType) { // here
2216+
if (canGetType) {
22172217
const typeForObject = typeChecker.getTypeAtLocation(objectLikeContainer);
22182218
if (!typeForObject) return GlobalsSearch.Fail;
2219-
// In a binding pattern, get only known properties (unless in the same scope).
2220-
// Everywhere else we will get all possible properties.
2221-
2222-
// const containerClass = getContainingClass(objectLikeContainer);
22232219
typeMembers = typeChecker.getPropertiesOfType(typeForObject).filter(propertySymbol => {
22242220
return typeChecker.isPropertyAccessible(objectLikeContainer, /*isSuper*/ false, /*writing*/ false, typeForObject, propertySymbol);
2225-
// return !(getDeclarationModifierFlagsFromSymbol(propertySymbol) & ModifierFlags.NonPublicAccessibilityModifier)
2226-
// || containerClass && contains(typeForObject.symbol.declarations, containerClass);
22272221
});
2228-
// // either public
2229-
// !(getDeclarationModifierFlagsFromSymbol(symbol) & ModifierFlags.NonPublicAccessibilityModifier)
2230-
// // or we're in it
2231-
// || containerClass && contains(typeForObject.symbol.declarations, containerClass));
22322222
existingMembers = objectLikeContainer.elements;
22332223
}
22342224
}

0 commit comments

Comments
 (0)