Skip to content

Commit

Permalink
more index cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
Egbert Voigt authored and Egbert Voigt committed Jan 10, 2019
1 parent 69dfaa5 commit c7147ea
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion source/antlr/v4/runtime/Recognizer.d
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2018 The ANTLR Project. All rights reserved.
* Copyright (c) 2012-2019 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
Expand Down
4 changes: 2 additions & 2 deletions source/antlr/v4/runtime/atn/ArrayPredictionContext.d
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2018 The ANTLR Project. All rights reserved.
* Copyright (c) 2012-2019 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
Expand Down Expand Up @@ -122,7 +122,7 @@ class ArrayPredictionContext : PredictionContext
if (isEmpty)
return "[]";
string[] buf;
foreach (int i, el; returnStates) {
foreach (i, el; returnStates) {
if (el == EMPTY_RETURN_STATE) {
buf ~= "$";
continue;
Expand Down
4 changes: 2 additions & 2 deletions source/antlr/v4/runtime/atn/LexerActionExecutor.d
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2018 The ANTLR Project. All rights reserved.
* Copyright (c) 2012-2019 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
Expand Down Expand Up @@ -205,7 +205,7 @@ class LexerActionExecutor
return false;
}
LexerActionExecutor other = cast(LexerActionExecutor)obj;
foreach (int i, lexerA; lexerActions)
foreach (i, lexerA; lexerActions)
if (lexerA != other.lexerActions[i])
return false;
return this.hashCode_ == other.toHash;
Expand Down
8 changes: 4 additions & 4 deletions source/antlr/v4/runtime/misc/IntervalSet.d
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2012-2017 The ANTLR Project. All rights reserved.
* Copyright (c) 2012-2019 The ANTLR Project. All rights reserved.
* Use of this file is governed by the BSD 3-clause license that
* can be found in the LICENSE.txt file in the project root.
*/
Expand Down Expand Up @@ -133,7 +133,7 @@ class IntervalSet : IntSet
}
// find position in list
// Use iterators as we modify list in place
foreach (int index, ref el; intervals_) {
foreach (index, ref el; intervals_) {
Interval r = el;
if (addition.equals(r)) {
return;
Expand Down Expand Up @@ -651,7 +651,7 @@ class IntervalSet : IntSet
if (this.size() > 1) {
buf.put("{");
}
foreach (int index, I; this.intervals_) {
foreach (index, I; this.intervals_) {
int a = I.a;
int b = I.b;
if (a == b) {
Expand Down Expand Up @@ -683,7 +683,7 @@ class IntervalSet : IntSet
if (size() > 1) {
buf.put("{");
}
foreach (int index, I; this.intervals_) {
foreach (index, I; this.intervals_) {
int a = I.a;
int b = I.b;
if ( a==b ) {
Expand Down

0 comments on commit c7147ea

Please sign in to comment.