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

Side by Side Diff: pkg/compiler/lib/src/js_backend/constant_emitter.dart

Issue 2221893003: pkg/compiler: fix imports (Closed) Base URL: https://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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 import '../common.dart'; 5 import '../common.dart';
6 import '../compiler.dart' show Compiler; 6 import '../compiler.dart' show Compiler;
7 import '../constants/values.dart'; 7 import '../constants/values.dart';
8 import '../dart_types.dart'; 8 import '../dart_types.dart';
9 import '../elements/elements.dart'; 9 import '../elements/elements.dart';
10 import '../io/code_output.dart'; 10 import '../io/code_output.dart';
11 import '../js/js.dart' as jsAst; 11 import '../js/js.dart' as jsAst;
12 import '../js/js.dart' show js; 12 import '../js/js.dart' show js;
13 import 'backend.dart';
13 import 'constant_system_javascript.dart'; 14 import 'constant_system_javascript.dart';
14
15 import 'backend.dart';
16 import 'namer.dart'; 15 import 'namer.dart';
17 16
18 typedef jsAst.Expression _ConstantReferenceGenerator(ConstantValue constant); 17 typedef jsAst.Expression _ConstantReferenceGenerator(ConstantValue constant);
19 18
20 typedef jsAst.Expression _ConstantListGenerator(jsAst.Expression array); 19 typedef jsAst.Expression _ConstantListGenerator(jsAst.Expression array);
21 20
22 /** 21 /**
23 * Generates the JavaScript expressions for constants. 22 * Generates the JavaScript expressions for constants.
24 * 23 *
25 * It uses a given [constantReferenceGenerator] to reference nested constants 24 * It uses a given [constantReferenceGenerator] to reference nested constants
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after
333 [value, argumentList]); 332 [value, argumentList]);
334 } 333 }
335 return value; 334 return value;
336 } 335 }
337 336
338 @override 337 @override
339 jsAst.Expression visitDeferred(DeferredConstantValue constant, [_]) { 338 jsAst.Expression visitDeferred(DeferredConstantValue constant, [_]) {
340 return constantReferenceGenerator(constant.referenced); 339 return constantReferenceGenerator(constant.referenced);
341 } 340 }
342 } 341 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/codegen/unsugar.dart ('k') | pkg/compiler/lib/src/js_backend/constant_system_javascript.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698