diff options
author | Dmytro Kytsmen <dmitrokytsmen@gmail.com> | 2017-07-09 17:11:51 +0300 |
---|---|---|
committer | Roman Ivanov <romani@users.noreply.github.com> | 2017-07-09 07:53:32 -0700 |
commit | 5f3665522bb7a0f93c09f09680c48362a2985071 (patch) | |
tree | aed1f68f9e525a190b02bbec738a9e5c747ff5bc /src/test/resources/com/puppycrawl/tools/checkstyle/grammars | |
parent | a2d68d9687630fd5eff69d4f53e2710c2fd5d25f (diff) | |
download | checkstyle-5f3665522bb7a0f93c09f09680c48362a2985071.tar.gz |
Issue #4587: Moved unused resource classes
Diffstat (limited to 'src/test/resources/com/puppycrawl/tools/checkstyle/grammars')
2 files changed, 35 insertions, 0 deletions
diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/grammars/InputAstRegressionNewlineCrAtEndOfFile.java b/src/test/resources/com/puppycrawl/tools/checkstyle/grammars/InputAstRegressionNewlineCrAtEndOfFile.java new file mode 100644 index 000000000..326657a98 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/grammars/InputAstRegressionNewlineCrAtEndOfFile.java @@ -0,0 +1 @@ +////////////////////////////////////////////////////////////////////////////////
// Test case file for checkstyle.
// Created: 2015
////////////////////////////////////////////////////////////////////////////////
package com.puppycrawl.tools.checkstyle.grammars;
/**
* Test case for detection of an existing CR newline at EOF, using the
* NewlineAtEndOfFileCheck.
* @author Martin Steiger
**/
public interface InputAstRegressionNewlineCrAtEndOfFile
{
/** Test with ending with CR newline
*/
}
\ No newline at end of file diff --git a/src/test/resources/com/puppycrawl/tools/checkstyle/grammars/InputNewlineCrAtEndOfFileAst.txt b/src/test/resources/com/puppycrawl/tools/checkstyle/grammars/InputNewlineCrAtEndOfFileAst.txt new file mode 100644 index 000000000..aca3da919 --- /dev/null +++ b/src/test/resources/com/puppycrawl/tools/checkstyle/grammars/InputNewlineCrAtEndOfFileAst.txt @@ -0,0 +1,34 @@ +SINGLE_LINE_COMMENT -> // [1:0] +`--COMMENT_CONTENT -> //////////////////////////////////////////////////////////////////////////////\r [1:2] +SINGLE_LINE_COMMENT -> // [2:0] +`--COMMENT_CONTENT -> Test case file for checkstyle.\r [2:2] +SINGLE_LINE_COMMENT -> // [3:0] +`--COMMENT_CONTENT -> Created: 2015\r [3:2] +SINGLE_LINE_COMMENT -> // [4:0] +`--COMMENT_CONTENT -> //////////////////////////////////////////////////////////////////////////////\r [4:2] +PACKAGE_DEF -> package [5:0] +|--ANNOTATIONS -> ANNOTATIONS [5:39] +|--DOT -> . [5:39] +| |--DOT -> . [5:28] +| | |--DOT -> . [5:22] +| | | |--DOT -> . [5:11] +| | | | |--IDENT -> com [5:8] +| | | | `--IDENT -> puppycrawl [5:12] +| | | `--IDENT -> tools [5:23] +| | `--IDENT -> checkstyle [5:29] +| `--IDENT -> grammars [5:40] +`--SEMI -> ; [5:48] +INTERFACE_DEF -> INTERFACE_DEF [12:0] +|--MODIFIERS -> MODIFIERS [12:0] +| |--BLOCK_COMMENT_BEGIN -> /* [7:0] +| | |--COMMENT_CONTENT -> *\r * Test case for detection of an existing CR newline at EOF, using the \r * NewlineAtEndOfFileCheck.\r * @author Martin Steiger\r * [7:2] +| | `--BLOCK_COMMENT_END -> */ [11:2] +| `--LITERAL_PUBLIC -> public [12:0] +|--LITERAL_INTERFACE -> interface [12:7] +|--IDENT -> InputAstRegressionNewlineCrAtEndOfFile [12:17] +`--OBJBLOCK -> OBJBLOCK [13:0] + |--LCURLY -> { [13:0] + |--BLOCK_COMMENT_BEGIN -> /* [14:0] + | |--COMMENT_CONTENT -> * Test with ending with CR newline\r [14:2] + | `--BLOCK_COMMENT_END -> */ [15:0] + `--RCURLY -> } [16:0] |