| Index: pkg/analyzer_experimental/test/generated/scanner_test.dart
|
| diff --git a/pkg/analyzer_experimental/test/generated/scanner_test.dart b/pkg/analyzer_experimental/test/generated/scanner_test.dart
|
| index b48df5fb6a1cb31f3a470bbe1a23db2e80e2d8b9..51f5b2701e12d3d7081c4d2628757c5931135e71 100644
|
| --- a/pkg/analyzer_experimental/test/generated/scanner_test.dart
|
| +++ b/pkg/analyzer_experimental/test/generated/scanner_test.dart
|
| @@ -339,9 +339,17 @@ class CharBufferScannerTest extends AbstractScannerTest {
|
| final __test = new CharBufferScannerTest();
|
| runJUnitTest(__test, __test.test_identifier);
|
| });
|
| - _ut.test('test_illegalChar', () {
|
| + _ut.test('test_illegalChar_cyrillicLetter_middle', () {
|
| final __test = new CharBufferScannerTest();
|
| - runJUnitTest(__test, __test.test_illegalChar);
|
| + runJUnitTest(__test, __test.test_illegalChar_cyrillicLetter_middle);
|
| + });
|
| + _ut.test('test_illegalChar_cyrillicLetter_start', () {
|
| + final __test = new CharBufferScannerTest();
|
| + runJUnitTest(__test, __test.test_illegalChar_cyrillicLetter_start);
|
| + });
|
| + _ut.test('test_illegalChar_notLetter', () {
|
| + final __test = new CharBufferScannerTest();
|
| + runJUnitTest(__test, __test.test_illegalChar_notLetter);
|
| });
|
| _ut.test('test_index', () {
|
| final __test = new CharBufferScannerTest();
|
| @@ -1010,9 +1018,17 @@ class StringScannerTest extends AbstractScannerTest {
|
| final __test = new StringScannerTest();
|
| runJUnitTest(__test, __test.test_identifier);
|
| });
|
| - _ut.test('test_illegalChar', () {
|
| + _ut.test('test_illegalChar_cyrillicLetter_middle', () {
|
| + final __test = new StringScannerTest();
|
| + runJUnitTest(__test, __test.test_illegalChar_cyrillicLetter_middle);
|
| + });
|
| + _ut.test('test_illegalChar_cyrillicLetter_start', () {
|
| + final __test = new StringScannerTest();
|
| + runJUnitTest(__test, __test.test_illegalChar_cyrillicLetter_start);
|
| + });
|
| + _ut.test('test_illegalChar_notLetter', () {
|
| final __test = new StringScannerTest();
|
| - runJUnitTest(__test, __test.test_illegalChar);
|
| + runJUnitTest(__test, __test.test_illegalChar_notLetter);
|
| });
|
| _ut.test('test_index', () {
|
| final __test = new StringScannerTest();
|
| @@ -1481,6 +1497,7 @@ class TokenStreamValidator {
|
|
|
| /**
|
| * Validate that the stream of tokens that starts with the given token is correct.
|
| + *
|
| * @param token the first token in the stream of tokens to be validated
|
| */
|
| void validate(Token token) {
|
| @@ -1679,7 +1696,13 @@ abstract class AbstractScannerTest extends JUnitTestCase {
|
| void test_identifier() {
|
| assertToken(TokenType.IDENTIFIER, "result");
|
| }
|
| - void test_illegalChar() {
|
| + void test_illegalChar_cyrillicLetter_middle() {
|
| + assertError(ScannerErrorCode.ILLEGAL_CHARACTER, 0, "Shche\u0433lov");
|
| + }
|
| + void test_illegalChar_cyrillicLetter_start() {
|
| + assertError(ScannerErrorCode.ILLEGAL_CHARACTER, 0, "\u0429");
|
| + }
|
| + void test_illegalChar_notLetter() {
|
| assertError(ScannerErrorCode.ILLEGAL_CHARACTER, 0, "\u0312");
|
| }
|
| void test_index() {
|
| @@ -2046,6 +2069,7 @@ abstract class AbstractScannerTest extends JUnitTestCase {
|
|
|
| /**
|
| * Assert that scanning the given source produces an error with the given code.
|
| + *
|
| * @param illegalCharacter
|
| * @param i
|
| * @param source the source to be scanned to produce the error
|
| @@ -2059,6 +2083,7 @@ abstract class AbstractScannerTest extends JUnitTestCase {
|
| /**
|
| * Assert that when scanned the given source contains a single keyword token with the same lexeme
|
| * as the original source.
|
| + *
|
| * @param source the source to be scanned
|
| */
|
| void assertKeywordToken(String source) {
|
| @@ -2097,6 +2122,7 @@ abstract class AbstractScannerTest extends JUnitTestCase {
|
|
|
| /**
|
| * Assert that the token scanned from the given source has the expected type.
|
| + *
|
| * @param expectedType the expected type of the token
|
| * @param source the source to be scanned to produce the actual token
|
| */
|
| @@ -2131,6 +2157,7 @@ abstract class AbstractScannerTest extends JUnitTestCase {
|
| /**
|
| * Assert that when scanned the given source contains a sequence of tokens identical to the given
|
| * tokens.
|
| + *
|
| * @param source the source to be scanned
|
| * @param expectedTokens the tokens that are expected to be in the source
|
| */
|
|
|