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

Unified Diff: pkg/analyzer2dart/test/sexpr_data.dart

Issue 898303002: Support instance methods in analyzer2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/analyzer2dart/test/sexpr_data.dart
diff --git a/pkg/analyzer2dart/test/sexpr_data.dart b/pkg/analyzer2dart/test/sexpr_data.dart
index 646a42aba0194d2098e6368b7728e55ca712345a..66ef99d76a451d4ad9c1415399bd02084a367a23 100644
--- a/pkg/analyzer2dart/test/sexpr_data.dart
+++ b/pkg/analyzer2dart/test/sexpr_data.dart
@@ -1406,4 +1406,30 @@ main() {
(InvokeContinuation return (v0))))
'''}),
]),
+
+ const Group('Instance method', const <TestSpec>[
+ const TestSpec('''
+class C {
+ C() {}
+ foo() {}
+}
+main() {
+ return new C().foo();
sigurdm 2015/02/06 15:04:46 You could add arguments to make the test stronger
+}
+''',
+ const {
+'main': '''
+(FunctionDefinition main () return
+ (LetCont ((k0 (v0)
+ (LetCont ((k1 (v1)
+ (InvokeContinuation return (v1))))
+ (InvokeMethod v0 foo () k1))))
+ (InvokeConstructor C () k0)))
+''',
+'C.foo': '''
+(FunctionDefinition foo () return
+ (LetPrim (v0 (Constant (Null)))
+ (InvokeContinuation return (v0))))
+'''}),
+]),
];
« pkg/analyzer2dart/test/end2end_data.dart ('K') | « pkg/analyzer2dart/test/end2end_data.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698