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

Unified Diff: pkg/smoke/test/piece1.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/codegen/recorder_test.dart ('k') | pkg/smoke/test/piece2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/smoke/test/piece1.dart
diff --git a/pkg/smoke/test/piece1.dart b/pkg/smoke/test/piece1.dart
new file mode 100644
index 0000000000000000000000000000000000000000..d70a5dfadfda31a4530716f0dd94b93ecf6a5902
--- /dev/null
+++ b/pkg/smoke/test/piece1.dart
@@ -0,0 +1,35 @@
+// 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.piece1;
+
+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: {
+ #j: (o) => o.j,
+ #j2: (o) => o.j2,
+ },
+ setters: {},
+ parents: {
+ smoke_0.H: smoke_0.G,
+ },
+ declarations: {
+ smoke_0.H: {
+ #f: const Declaration(#f, int, annotations: const [smoke_0.a1]),
+ #g: const Declaration(#g, int, annotations: const [smoke_0.a1]),
+ #h: const Declaration(#h, int, annotations: const [smoke_0.a2]),
+ #i: const Declaration(#i, int, annotations: const [smoke_0.a3]),
+ },
+ },
+ staticMethods: {
+ smoke_0.A: {
+ #staticInc: smoke_0.A.staticInc,
+ },
+ },
+ names: {});
« no previous file with comments | « pkg/smoke/test/codegen/recorder_test.dart ('k') | pkg/smoke/test/piece2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698