Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(109)

Unified Diff: pkg/analyzer/test/dart/ast/ast_test.dart

Issue 1688113004: Remove unused or unneeded stuff from java_core.dart. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Re-add stuff analysis_server still uses. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/test/dart/ast/ast_test.dart
diff --git a/pkg/analyzer/test/dart/ast/ast_test.dart b/pkg/analyzer/test/dart/ast/ast_test.dart
index f8d51f15c16f128a81c61b4ec3d21b3b2cd4fec4..1739a6f45cb4b1e363ca9e2b020b795037f3fb34 100644
--- a/pkg/analyzer/test/dart/ast/ast_test.dart
+++ b/pkg/analyzer/test/dart/ast/ast_test.dart
@@ -5,7 +5,6 @@
library analyzer.test.dart.ast.ast_test;
import 'package:analyzer/dart/ast/ast.dart';
-import 'package:analyzer/src/generated/java_core.dart';
import 'package:analyzer/src/generated/scanner.dart';
import 'package:analyzer/src/generated/testing/ast_factory.dart';
import 'package:analyzer/src/generated/testing/token_factory.dart';
@@ -502,7 +501,7 @@ class NodeListTest extends EngineTestCase {
list.addAll(nodes);
expect(list, hasLength(3));
AstNode fourthNode = AstFactory.integer(0);
- expect(javaListSet(list, 1, fourthNode), same(secondNode));
+ list[1] = fourthNode;
expect(list, hasLength(3));
expect(list[0], same(firstNode));
expect(list[1], same(fourthNode));
@@ -513,7 +512,7 @@ class NodeListTest extends EngineTestCase {
AstNode node = AstFactory.booleanLiteral(true);
NodeList<AstNode> list = new NodeList<AstNode>(AstFactory.argumentList());
try {
- javaListSet(list, -1, node);
+ list[-1] = node;
fail("Expected IndexOutOfBoundsException");
} on RangeError {
// Expected
@@ -524,7 +523,7 @@ class NodeListTest extends EngineTestCase {
AstNode node = AstFactory.booleanLiteral(true);
NodeList<AstNode> list = new NodeList<AstNode>(AstFactory.argumentList());
try {
- javaListSet(list, 1, node);
+ list[1] = node;
fail("Expected IndexOutOfBoundsException");
} on RangeError {
// Expected
« no previous file with comments | « pkg/analyzer/lib/src/generated/utilities_collection.dart ('k') | pkg/analyzer/test/generated/constant_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698