From d8e562319f8bf7d9c88e861675b6f2a6a42a6c9f Mon Sep 17 00:00:00 2001 From: Andrey Breslav Date: Fri, 31 Aug 2012 13:16:40 +0400 Subject: [PATCH] Clarifying comment --- .../backend/src/org/jetbrains/jet/codegen/RangeCodegenUtil.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/backend/src/org/jetbrains/jet/codegen/RangeCodegenUtil.java b/compiler/backend/src/org/jetbrains/jet/codegen/RangeCodegenUtil.java index 988c48d4646..503e47984cc 100644 --- a/compiler/backend/src/org/jetbrains/jet/codegen/RangeCodegenUtil.java +++ b/compiler/backend/src/org/jetbrains/jet/codegen/RangeCodegenUtil.java @@ -50,6 +50,8 @@ public class RangeCodegenUtil { @Nullable public static BinaryCall getRangeAsBinaryCall(@NotNull JetForExpression forExpression) { + // We are looking for rangeTo() calls + // Other binary operations will succeed too, but will be filtered out later (by examining a resolvedCall) JetExpression rangeExpression = forExpression.getLoopRange(); assert rangeExpression != null; JetExpression loopRange = JetPsiUtil.deparenthesize(rangeExpression);