未验证 提交 c812a62b 编写于 作者: J Jonah Williams 提交者: GitHub

allow ignoring toString, hashCode, and == in api_conform_test (#13907)

上级 7cd3e29c
......@@ -1480,15 +1480,6 @@ abstract class ColorFilter {
List<dynamic> webOnlySerializeToCssPaint() {
throw UnsupportedError('ColorFilter for CSS paint not yet supported');
}
@override
bool operator ==(dynamic other);
@override
int get hashCode;
@override
String toString();
}
/// Styles to use for blurs in [MaskFilter] objects.
......
......@@ -472,15 +472,6 @@ abstract class TextStyle {
List<Shadow> shadows,
List<FontFeature> fontFeatures,
}) = engine.EngineTextStyle;
@override
int get hashCode;
@override
bool operator ==(dynamic other);
@override
String toString();
}
/// An opaque object that determines the configuration used by
......@@ -553,15 +544,6 @@ abstract class ParagraphStyle {
String ellipsis,
Locale locale,
}) = engine.EngineParagraphStyle;
@override
bool operator ==(dynamic other);
@override
int get hashCode;
@override
String toString();
}
abstract class StrutStyle {
......@@ -610,12 +592,6 @@ abstract class StrutStyle {
FontStyle fontStyle,
bool forceStrutHeight,
}) = engine.EngineStrutStyle;
@override
int get hashCode;
@override
bool operator ==(dynamic other);
}
/// A direction in which text flows.
......
......@@ -6,6 +6,13 @@ import 'dart:io';
import 'package:analyzer/analyzer.dart';
// Ignore members defined on Object.
const Set<String> _kObjectMembers = <String>{
'==',
'toString',
'hashCode',
};
void main() {
// These files just contain imports to the part files;
final CompilationUnit uiUnit = parseDartFile('lib/ui/ui.dart',
......@@ -105,6 +112,9 @@ void main() {
}
for (String methodName in uiMethods.keys) {
if (_kObjectMembers.contains(methodName)) {
continue;
}
final MethodDeclaration uiMethod = uiMethods[methodName];
final MethodDeclaration webMethod = webMethods[methodName];
if (webMethod == null) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册