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

Unified Diff: tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart

Issue 2944843002: All strong mode cleaning of dart2js. (Closed)
Patch Set: More issues discovered during testing. Created 3 years, 6 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/sourcemaps/sourcemap_html_helper.dart
diff --git a/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart b/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart
index d647c615dc53450bf77f73bce0b629aac43dfa53..bcaae6fae465756950f38f5712bcb31d79ca87e0 100644
--- a/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart
+++ b/tests/compiler/dart2js/sourcemaps/sourcemap_html_helper.dart
@@ -109,9 +109,9 @@ class SourceLocationCollection {
}
abstract class CssColorScheme {
- String singleLocationToCssColor(var id);
+ String singleLocationToCssColor(int id);
- String multiLocationToCssColor(List ids);
+ String multiLocationToCssColor(List<int> ids);
bool get showLocationAsSpan;
}
@@ -123,12 +123,13 @@ class CustomColorScheme implements CssColorScheme {
CustomColorScheme(
{this.showLocationAsSpan: false,
- String this.single(var id),
- String this.multi(List ids)});
+ String this.single(int id),
+ String this.multi(List<int> ids)});
- String singleLocationToCssColor(var id) => single != null ? single(id) : null;
+ String singleLocationToCssColor(int id) => single != null ? single(id) : null;
- String multiLocationToCssColor(List ids) => multi != null ? multi(ids) : null;
+ String multiLocationToCssColor(List<int> ids) =>
+ multi != null ? multi(ids) : null;
}
class PatternCssColorScheme implements CssColorScheme {
@@ -225,11 +226,11 @@ class CodeProcessor {
class ElementScheme {
const ElementScheme();
- String getName(var id, Set ids) => null;
- String getHref(var id, Set ids) => null;
- String onClick(var id, Set ids) => null;
- String onMouseOver(var id, Set ids) => null;
- String onMouseOut(var id, Set ids) => null;
+ String getName(int id, Set<int> ids) => null;
+ String getHref(int id, Set<int> ids) => null;
+ String onClick(int id, Set<int> ids) => null;
+ String onMouseOver(int id, Set<int> ids) => null;
+ String onMouseOut(int id, Set<int> ids) => null;
}
class HighlightLinkScheme implements ElementScheme {
« no previous file with comments | « tests/compiler/dart2js/sourcemaps/output_structure.dart ('k') | tests/compiler/dart2js/type_combination_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698