Adjust project code to new labels syntax

This commit is contained in:
Denis Zharkov
2015-04-28 15:43:08 +03:00
parent 1d8786dabf
commit 02659ca22d
18 changed files with 19 additions and 19 deletions
@@ -85,7 +85,7 @@ class BuilderFactoryForDuplicateSignatureDiagnostics(
}
}
@signatures
signatures@
for ((rawSignature, origins) in groupedBySignature.entrySet()) {
if (origins.size() <= 1) continue
@@ -33,7 +33,7 @@ object PrecedingCommentsBinder : WhitespacesAndCommentsBinder {
// 2. bind plain comments
var result = tokens.size()
@tokens for (idx in tokens.indices.reversed()) {
tokens@ for (idx in tokens.indices.reversed()) {
val tokenType = tokens[idx]
when (tokenType) {
JetTokens.WHITE_SPACE -> if (StringUtil.getLineBreakCount(getter[idx]) > 1) break@tokens
@@ -72,7 +72,7 @@ object TrailingCommentsBinder : WhitespacesAndCommentsBinder {
if (tokens.isEmpty()) return 0
var result = 0
@tokens for (idx in tokens.indices) {
tokens@ for (idx in tokens.indices) {
val tokenType = tokens[idx]
when (tokenType) {
JetTokens.WHITE_SPACE -> if (StringUtil.containsLineBreak(getter[idx])) break@tokens
@@ -71,7 +71,7 @@ object DescriptorEquivalenceForOverrides {
if (!ownersEquivalent(a, b, {x, y -> false})) return false
val overridingUtil = OverridingUtil.createWithEqualityAxioms @eq {
val overridingUtil = OverridingUtil.createWithEqualityAxioms eq@ {
c1, c2 ->
if (c1 == c2) return@eq true