-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Raise a diagnostic for qualified array access (#428)
fixes #348
- Loading branch information
Showing
21 changed files
with
482 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
libs/natparse/src/main/java/org/amshove/natparse/natural/IAdabasIndexAccess.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
package org.amshove.natparse.natural; | ||
|
||
import org.amshove.natparse.ReadOnlyList; | ||
|
||
public interface IAdabasIndexAccess extends IOperandNode | ||
{ | ||
ReadOnlyList<IOperandNode> operands(); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
libs/natparse/src/main/java/org/amshove/natparse/parsing/AdabasIndexAccess.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package org.amshove.natparse.parsing; | ||
|
||
import org.amshove.natparse.ReadOnlyList; | ||
import org.amshove.natparse.natural.IAdabasIndexAccess; | ||
import org.amshove.natparse.natural.IOperandNode; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
|
||
class AdabasIndexAccess extends BaseSyntaxNode implements IAdabasIndexAccess | ||
{ | ||
private final List<IOperandNode> operands = new ArrayList<>(); | ||
|
||
@Override | ||
public ReadOnlyList<IOperandNode> operands() | ||
{ | ||
return ReadOnlyList.from(operands); | ||
} | ||
|
||
void addOperand(IOperandNode operand) | ||
{ | ||
addNode((BaseSyntaxNode) operand); | ||
operands.add(operand); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.