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

Unified Diff: lib/src/path_observer.dart

Issue 2176183006: Add a type annotation to _identRegExp. (Closed) Base URL: git@github.com:dart-lang/observe.git@master
Patch Set: Created 4 years, 5 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: lib/src/path_observer.dart
diff --git a/lib/src/path_observer.dart b/lib/src/path_observer.dart
index 5b4ed99df04e1da9cbbb05d9af2d7e8efa272d9e..209947dfe7b9a6162bfa89dd03917443a44ea73c 100644
--- a/lib/src/path_observer.dart
+++ b/lib/src/path_observer.dart
@@ -328,7 +328,7 @@ bool _setObjectProperty(object, property, value) {
// From: https://github.com/rafaelw/ChangeSummary/blob/master/change_summary.js
-final _identRegExp = () {
+final RegExp _identRegExp = () {
const identStart = '[\$_a-zA-Z]';
const identPart = '[\$_a-zA-Z0-9]';
return new RegExp('^$identStart+$identPart*\$');
« 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