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

Unified Diff: tests/compiler/dart2js/type_test_helper.dart

Issue 27510003: Scanner for UTF-8 byte arrays (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fixes compiler tests Created 7 years, 2 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: tests/compiler/dart2js/type_test_helper.dart
diff --git a/tests/compiler/dart2js/type_test_helper.dart b/tests/compiler/dart2js/type_test_helper.dart
index 641a07a0d526af11c701dfadb87412e0f809f95f..7f2a8fd9ecbe882a1f3a74a161b653674fae95a0 100644
--- a/tests/compiler/dart2js/type_test_helper.dart
+++ b/tests/compiler/dart2js/type_test_helper.dart
@@ -7,7 +7,6 @@ library type_test_helper;
import 'dart:async';
import "package:expect/expect.dart";
import '../../../sdk/lib/_internal/compiler/implementation/dart_types.dart';
-import "parser_helper.dart" show SourceString;
import "compiler_helper.dart";
GenericType instantiate(TypeDeclarationElement element,
@@ -60,7 +59,7 @@ class TypeEnvironment {
}
DartType getMemberType(ClassElement element, String name) {
- Element member = element.localLookup(sourceString(name));
+ Element member = element.localLookup(name);
return member.computeType(compiler);
}
@@ -72,8 +71,6 @@ class TypeEnvironment {
return compiler.types.isMoreSpecific(T, S);
}
- SourceString sourceString(String name) => new SourceString(name);
-
FunctionType functionType(DartType returnType,
List<DartType> parameters,
{List<DartType> optionalParameter,
@@ -83,11 +80,11 @@ class TypeEnvironment {
Link<DartType> optionalParameterTypes = optionalParameter != null
? new Link<DartType>.fromList(optionalParameter)
: const Link<DartType>();
- var namedParameterNames = new LinkBuilder<SourceString>();
+ var namedParameterNames = new LinkBuilder<String>();
var namedParameterTypes = new LinkBuilder<DartType>();
if (namedParameters != null) {
namedParameters.forEach((String name, DartType type) {
- namedParameterNames.addLast(sourceString(name));
+ namedParameterNames.addLast(name);
namedParameterTypes.addLast(type);
});
}

Powered by Google App Engine
This is Rietveld 408576698