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

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

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