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

Unified Diff: site/try/src/compilation_unit.dart

Issue 2232273004: Delete site/try (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 4 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: site/try/src/compilation_unit.dart
diff --git a/site/try/src/compilation_unit.dart b/site/try/src/compilation_unit.dart
deleted file mode 100644
index 728db2f1845964a721b3321dbfdb60b1869fb0b2..0000000000000000000000000000000000000000
--- a/site/try/src/compilation_unit.dart
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright (c) 2013, 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.
-
-library trydart.compilationUnit;
-
-import 'dart:async' show
- Stream,
- StreamController;
-
-class CompilationUnitData {
- final String name;
- String content;
-
- CompilationUnitData(this.name, this.content);
-}
-
-class CompilationUnit extends CompilationUnitData {
- // Extending [CompilationUnitData] allows this class to hide the storage
- // allocated for [content] without introducing new names. The conventional
- // way of acheiving this is to introduce a library-private field, but library
- // privacy isn't without problems.
-
- static StreamController<CompilationUnit> controller =
- new StreamController<CompilationUnit>(sync: false);
-
- static Stream<CompilationUnit> get onChanged => controller.stream;
-
- CompilationUnit(String name, String content)
- : super(name, content);
-
- void set content(String newContent) {
- if (content != newContent) {
- super.content = newContent;
- controller.add(this);
- }
- }
-}

Powered by Google App Engine
This is Rietveld 408576698