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

Unified Diff: pkg/smoke/test/codegen/generator_test.dart

Issue 208743006: Fix smoke codegen for []. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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
« no previous file with comments | « pkg/smoke/lib/codegen/generator.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/smoke/test/codegen/generator_test.dart
diff --git a/pkg/smoke/test/codegen/generator_test.dart b/pkg/smoke/test/codegen/generator_test.dart
index b646cd624c6156dea2b17f52029ee355303434d0..ca8b000bd2beb4e72117eab4dae92da65b9ff872 100644
--- a/pkg/smoke/test/codegen/generator_test.dart
+++ b/pkg/smoke/test/codegen/generator_test.dart
@@ -112,6 +112,10 @@ main() {
new TypeIdentifier('dart:core', 'Function'), isMethod: true,
annotations: [new ConstExpression.constructor(null, 'Annotation',
[new ConstExpression.string("hi")], const {})]);
+ generator.addDeclaration(new TypeIdentifier('a.dart', 'A'), '[]',
+ new TypeIdentifier('dart:core', 'Function'), isMethod: true);
+ var symbol = "const Symbol('[]')";
+ var details = "$symbol, Function, kind: METHOD";
checkResults(generator,
imports: ["import 'a.dart' as smoke_0;"],
initCall:
@@ -119,6 +123,7 @@ main() {
' checkedMode: false,\n'
' declarations: {\n'
' smoke_0.A: {\n'
+ ' $symbol: const Declaration($details),\n'
' #bar: const Declaration(#bar, Function, kind: METHOD, '
'annotations: const [const Annotation(\'hi\')]),\n'
' #foo: const Declaration(#foo, int, isFinal: true),\n'
« no previous file with comments | « pkg/smoke/lib/codegen/generator.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698