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

Unified Diff: pkg/analysis_server/test/analysis_notification_highlights_test.dart

Issue 345863002: Nit fix: _HighlighRegion->_HighlightRegion (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/test/analysis_notification_highlights_test.dart
diff --git a/pkg/analysis_server/test/analysis_notification_highlights_test.dart b/pkg/analysis_server/test/analysis_notification_highlights_test.dart
index 01600b832be42bf2beeed7e213152810f88f3d77..012bb7d801e00b2f6ab83c95c49204a69daeef83 100644
--- a/pkg/analysis_server/test/analysis_notification_highlights_test.dart
+++ b/pkg/analysis_server/test/analysis_notification_highlights_test.dart
@@ -25,10 +25,10 @@ main() {
@ReflectiveTestCase()
class _AnalysisNotificationHighlightsTest extends AbstractAnalysisTest {
- List<_HighlighRegion> regions;
+ List<_HighlightRegion> regions;
void assertHasRawRegion(HighlightType type, int offset, int length) {
- for (_HighlighRegion region in regions) {
+ for (_HighlightRegion region in regions) {
if (region.offset == offset && region.length == length && region.type ==
type.name) {
return;
@@ -45,7 +45,7 @@ class _AnalysisNotificationHighlightsTest extends AbstractAnalysisTest {
}
void assertNoRawRegion(HighlightType type, int offset, int length) {
- for (_HighlighRegion region in regions) {
+ for (_HighlightRegion region in regions) {
if (region.offset == offset && region.length == length && region.type ==
type.name) {
fail(
@@ -97,7 +97,7 @@ class _AnalysisNotificationHighlightsTest extends AbstractAnalysisTest {
List<Map<String, Object>> regionsJson = notification.getParameter(
REGIONS);
for (Map<String, Object> regionJson in regionsJson) {
- regions.add(new _HighlighRegion.fromJson(regionJson));
+ regions.add(new _HighlightRegion.fromJson(regionJson));
}
}
}
@@ -756,14 +756,14 @@ class A<T> {
}
-class _HighlighRegion {
+class _HighlightRegion {
final int length;
final int offset;
final String type;
- _HighlighRegion(this.type, this.offset, this.length);
+ _HighlightRegion(this.type, this.offset, this.length);
- factory _HighlighRegion.fromJson(Map<String, Object> map) {
- return new _HighlighRegion(map[TYPE], map[OFFSET], map[LENGTH]);
+ factory _HighlightRegion.fromJson(Map<String, Object> map) {
+ return new _HighlightRegion(map[TYPE], map[OFFSET], map[LENGTH]);
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698