Temporarily commented out buggy code in list comprehension code.

This commit is contained in:
Eric Traut 2019-03-16 01:58:39 -07:00
parent 05aea176ef
commit cee369f31b
2 changed files with 2 additions and 2 deletions

View File

@ -252,7 +252,7 @@ export class ExpressionEvaluator {
} else if (node instanceof ListComprehensionNode) {
// TODO - need to implement
// TODO - infer list type
this._getTypeFromExpression(node.baseExpression, EvaluatorFlags.None);
// this._getTypeFromExpression(node.baseExpression, EvaluatorFlags.None);
let type = ScopeUtils.getBuiltInObject(this._scope, 'list', []);
typeResult = { type, node };
} else if (node instanceof DictionaryNode) {

View File

@ -1347,7 +1347,7 @@ export class TypeAnalyzer extends ParseTreeWalker {
exprType = TypeUtils.combineTypes(leftType, rightType);
} else if (node instanceof ListComprehensionNode) {
// TODO - infer list type
this._getTypeOfExpression(node.baseExpression);
// this._getTypeOfExpression(node.baseExpression);
exprType = ScopeUtils.getBuiltInObject(
this._currentScope, 'list', []);
} else if (node instanceof DictionaryNode) {