mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
move "override" onto the new fangle decl modifier code, instead of being a virtual
attribute. As part of this, introduce a new "NotSerialized" flag in Attr.def. This eliminates a bunch of special case code in the parser and elsewhere for handling this modifier. Swift SVN r19997
This commit is contained in:
@@ -328,14 +328,6 @@ struct ASTNodeBase {};
|
||||
PrettyStackTraceDecl debugStack("verifying DeclContext", D);
|
||||
abort();
|
||||
}
|
||||
if (D->getAttrs().hasAttribute<OverrideAttr>()) {
|
||||
if (!isa<FuncDecl>(D) && !isa<VarDecl>(D) && !isa<SubscriptDecl>(D)) {
|
||||
PrettyStackTraceDecl debugStack("verifying override", D);
|
||||
Out << "'override' attribute on a non-overridable member\n";
|
||||
D->dump(Out);
|
||||
abort();
|
||||
}
|
||||
}
|
||||
}
|
||||
template<typename T>
|
||||
void verifyParsedBase(T ASTNode) {
|
||||
|
||||
Reference in New Issue
Block a user