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); |
}); |
} |