Skip to content
This repository was archived by the owner on Nov 20, 2024. It is now read-only.

Commit 4930ad5

Browse files
committed
Add a utility method so that it can be added to the superclass without breaking the build
[email protected] Review URL: https://codereview.chromium.org//1463553002 .
1 parent d41c3f3 commit 4930ad5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/src/linter.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,10 @@ class _LineInfo implements LineInfo {
425425
@override
426426
LineInfo_Location getLocation(int offset) => new LineInfo_Location(
427427
node.span.start.line + 1, node.span.start.column + 1);
428+
429+
int getOffsetOfLine(int lineNumber) {
430+
throw new UnsupportedError('Cannot get line offset from a yaml node');
431+
}
428432
}
429433

430434
class _LintCode extends LintCode {

0 commit comments

Comments
 (0)