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

Unified Diff: pkg/dartdoc/lib/src/markdown/block_parser.dart

Issue 11314019: Using 'interface' and 'abstract' for methods should produce error (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
Index: pkg/dartdoc/lib/src/markdown/block_parser.dart
diff --git a/pkg/dartdoc/lib/src/markdown/block_parser.dart b/pkg/dartdoc/lib/src/markdown/block_parser.dart
index 79d9e69f13bf23b24e8a0d94da2f6b30503b8b25..9d09f38d629272c2df5004d55c1d238f7534922d 100644
--- a/pkg/dartdoc/lib/src/markdown/block_parser.dart
+++ b/pkg/dartdoc/lib/src/markdown/block_parser.dart
@@ -80,7 +80,7 @@ class BlockParser {
}
}
-class BlockSyntax {
+abstract class BlockSyntax {
/// Gets the collection of built-in block parsers. To turn a series of lines
/// into blocks, each of these will be tried in turn. Order matters here.
static List<BlockSyntax> get syntaxes {
@@ -114,7 +114,7 @@ class BlockSyntax {
return pattern.firstMatch(parser.current) != null;
}
- abstract Node parse(BlockParser parser);
+ Node parse(BlockParser parser);
List<String> parseChildLines(BlockParser parser) {
// Grab all of the lines that form the blockquote, stripping off the ">".
@@ -259,10 +259,10 @@ class ListItem {
}
/// Base class for both ordered and unordered lists.
-class ListSyntax extends BlockSyntax {
+abstract class ListSyntax extends BlockSyntax {
bool get canEndBlock => false;
- abstract String get listTag;
+ String get listTag;
Node parse(BlockParser parser) {
final items = <ListItem>[];

Powered by Google App Engine
This is Rietveld 408576698