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

Unified Diff: packages/analyzer/lib/src/generated/scanner.dart

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: Created 5 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
« no previous file with comments | « packages/analyzer/lib/src/generated/resolver.dart ('k') | packages/analyzer/lib/src/generated/sdk.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: packages/analyzer/lib/src/generated/scanner.dart
diff --git a/analyzer/lib/src/generated/scanner.dart b/packages/analyzer/lib/src/generated/scanner.dart
similarity index 99%
rename from analyzer/lib/src/generated/scanner.dart
rename to packages/analyzer/lib/src/generated/scanner.dart
index 9e028ca29686c8576ef50cad18146639563783bb..0a9fa2a106ac940cee56163d48b3e72df1001f09 100644
--- a/analyzer/lib/src/generated/scanner.dart
+++ b/packages/analyzer/lib/src/generated/scanner.dart
@@ -1501,8 +1501,8 @@ class Scanner {
}
recordStartOfLine();
} else if (next == 0xA) {
- recordStartOfLine();
next = _reader.advance();
+ recordStartOfLine();
} else {
next = _reader.advance();
}
@@ -2010,9 +2010,7 @@ class Token {
/**
* Initialize a newly created token to have the given [type] and [offset].
*/
- Token(this.type, int offset) {
- this.offset = offset;
- }
+ Token(this.type, this.offset);
/**
* Return the offset from the beginning of the file to the character after the
« no previous file with comments | « packages/analyzer/lib/src/generated/resolver.dart ('k') | packages/analyzer/lib/src/generated/sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698