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

Unified Diff: pkg/smoke/test/piece2.dart

Issue 362043006: Add support in smoke for generating static configurations in pieces. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 5 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/test/piece1.dart ('k') | pkg/smoke/test/static_in_pieces_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/smoke/test/piece2.dart
diff --git a/pkg/smoke/test/piece2.dart b/pkg/smoke/test/piece2.dart
new file mode 100644
index 0000000000000000000000000000000000000000..a474fca51ba4a7977644da38ba7686abea246fa6
--- /dev/null
+++ b/pkg/smoke/test/piece2.dart
@@ -0,0 +1,38 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+/// Part of the static_in_pieces_test
+library smoke.test.piece2;
+
+import 'package:smoke/smoke.dart' show Declaration, PROPERTY, METHOD;
+import 'package:smoke/static.dart' show useGeneratedCode, StaticConfiguration;
+import 'common.dart' as smoke_0;
+
+final configuration = new StaticConfiguration(
+ checkedMode: false,
+ getters: {
+ #j2: (o) => o.j2,
+ },
+ setters: {
+ #j2: (o, v) { o.j2 = v; },
+ },
+ parents: {},
+ declarations: {
+ smoke_0.A: {},
+ smoke_0.B: {
+ #a: const Declaration(#a, smoke_0.A),
+ },
+ smoke_0.K: {
+ #k: const Declaration(#k, int, annotations: const [const smoke_0.AnnotC(named: true)]),
+ #k2: const Declaration(#k2, int, annotations: const [const smoke_0.AnnotC()]),
+ },
+ },
+ staticMethods: {
+ smoke_0.A: {
+ #staticInc: smoke_0.A.staticInc,
+ },
+ },
+ names: {
+ #i: r'i',
+ });
« no previous file with comments | « pkg/smoke/test/piece1.dart ('k') | pkg/smoke/test/static_in_pieces_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698