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

Unified Diff: lib/src/linter.dart

Issue 1463553002: Add a utility method so that it can be added to the superclass without breaking the build (Closed) Base URL: https://github.com/dart-lang/linter.git@master
Patch Set: Created 5 years, 1 month 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/linter.dart
diff --git a/lib/src/linter.dart b/lib/src/linter.dart
index a7c0a57d2f33d129e3773e1084b1fcae083d0d82..f58b81dba1944b770e0e79591e4acb272148d76c 100644
--- a/lib/src/linter.dart
+++ b/lib/src/linter.dart
@@ -425,6 +425,10 @@ class _LineInfo implements LineInfo {
@override
LineInfo_Location getLocation(int offset) => new LineInfo_Location(
node.span.start.line + 1, node.span.start.column + 1);
+
+ int getOffsetOfLine(int lineNumber) {
+ throw new UnsupportedError('Cannot get line offset from a yaml node');
+ }
}
class _LintCode extends LintCode {
« 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