Index: pkg/analyzer/test/generated/scanner_test.dart |
diff --git a/pkg/analyzer/test/generated/scanner_test.dart b/pkg/analyzer/test/generated/scanner_test.dart |
index 04350a54e4882ec3c369fa659594043f7c2e5e91..50ad8cba8dbef07cc7e22fb282c44e7ea2bcbc15 100644 |
--- a/pkg/analyzer/test/generated/scanner_test.dart |
+++ b/pkg/analyzer/test/generated/scanner_test.dart |
@@ -361,6 +361,14 @@ class ScannerTest extends JUnitTestCase { |
assertToken(TokenType.COMMA, ","); |
} |
+ void test_comment_disabled_multi() { |
+ Scanner scanner = new Scanner(null, new CharSequenceReader(new CharSequence("/* comment */ ")), AnalysisErrorListener.NULL_LISTENER); |
+ scanner.preserveComments = false; |
+ Token token = scanner.tokenize(); |
+ JUnitTestCase.assertNotNull(token); |
+ JUnitTestCase.assertNull(token.precedingComments); |
+ } |
+ |
void test_comment_multi() { |
assertComment(TokenType.MULTI_LINE_COMMENT, "/* comment */"); |
} |
@@ -1262,6 +1270,10 @@ class ScannerTest extends JUnitTestCase { |
final __test = new ScannerTest(); |
runJUnitTest(__test, __test.test_comma); |
}); |
+ _ut.test('test_comment_disabled_multi', () { |
+ final __test = new ScannerTest(); |
+ runJUnitTest(__test, __test.test_comment_disabled_multi); |
+ }); |
_ut.test('test_comment_multi', () { |
final __test = new ScannerTest(); |
runJUnitTest(__test, __test.test_comment_multi); |