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

Unified Diff: pkg/fletchc/lib/src/lazy_field_initializer_codegen.dart

Issue 1659163007: Rename fletch -> dartino (Closed) Base URL: https://github.com/dartino/sdk.git@master
Patch Set: address comments Created 4 years, 11 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/fletchc/lib/src/hub/session_manager.dart ('k') | pkg/fletchc/lib/src/message_examples.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/fletchc/lib/src/lazy_field_initializer_codegen.dart
diff --git a/pkg/fletchc/lib/src/lazy_field_initializer_codegen.dart b/pkg/fletchc/lib/src/lazy_field_initializer_codegen.dart
deleted file mode 100644
index cd7aa1e02c7de54674ddb599cec603a58033eebc..0000000000000000000000000000000000000000
--- a/pkg/fletchc/lib/src/lazy_field_initializer_codegen.dart
+++ /dev/null
@@ -1,49 +0,0 @@
-// Copyright (c) 2015, the Dartino 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.md file.
-
-library fletchc.lazy_field_initializer_codegen;
-
-import 'package:compiler/src/elements/elements.dart';
-import 'package:compiler/src/resolution/tree_elements.dart' show
- TreeElements;
-
-import 'package:compiler/src/tree/tree.dart';
-
-import 'fletch_context.dart';
-
-import 'fletch_function_builder.dart' show
- FletchFunctionBuilder;
-
-import 'fletch_registry.dart' show
- FletchRegistry;
-
-import 'closure_environment.dart';
-
-import 'codegen_visitor.dart';
-
-class LazyFieldInitializerCodegen
- extends CodegenVisitor with FletchRegistryMixin {
- final FletchRegistry registry;
-
- LazyFieldInitializerCodegen(FletchFunctionBuilder functionBuilder,
- FletchContext context,
- TreeElements elements,
- this.registry,
- ClosureEnvironment closureEnvironment,
- FieldElement field)
- : super(functionBuilder, context, elements,
- closureEnvironment, field);
-
- FieldElement get field => element;
-
- void compile() {
- Node initializer = field.initializer;
- visitForValue(initializer);
- // TODO(ajohnsen): Add cycle detection.
- assembler
- ..storeStatic(context.getStaticFieldIndex(field, null))
- ..ret()
- ..methodEnd();
- }
-}
« no previous file with comments | « pkg/fletchc/lib/src/hub/session_manager.dart ('k') | pkg/fletchc/lib/src/message_examples.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698