void ResolveExpression::CollectExpressionInfo(ExpressionInfo* info) { ExpressionInfo other; this->CompositeExpression::CollectExpressionInfo(&other); if (other.HasDefaultVariableAccess()) { info->AddVariableNameAccess(fVariable); } info->MergeExceptDefaultVariable(&other); }
void WithExpression::CollectExpressionInfo(ExpressionInfo* info) const { ExpressionInfo* other = new ExpressionInfo(); CompositeExpression::CollectExpressionInfo(other); if (other->HasDefaultVariableAccess()) { info->AddVariableNameAccess(fVariable); } info->MergeExceptDefaultVariable(other); }