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

Side by Side Diff: pkg/analyzer/lib/src/summary/summarize_const_expr.dart

Issue 1693083004: Move scanner out of generated and clean up imports (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: clean up Created 4 years, 10 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
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_ast.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 library serialization.summarize_const_expr; 5 library serialization.summarize_const_expr;
6 6
7 import 'package:analyzer/dart/ast/token.dart';
7 import 'package:analyzer/src/generated/ast.dart'; 8 import 'package:analyzer/src/generated/ast.dart';
8 import 'package:analyzer/src/generated/scanner.dart';
9 import 'package:analyzer/src/summary/format.dart'; 9 import 'package:analyzer/src/summary/format.dart';
10 import 'package:analyzer/src/summary/idl.dart'; 10 import 'package:analyzer/src/summary/idl.dart';
11 11
12 /** 12 /**
13 * Serialize the given constructor initializer [node]. 13 * Serialize the given constructor initializer [node].
14 */ 14 */
15 UnlinkedConstructorInitializer serializeConstructorInitializer( 15 UnlinkedConstructorInitializer serializeConstructorInitializer(
16 ConstructorInitializer node, 16 ConstructorInitializer node,
17 UnlinkedConstBuilder serializeConstExpr(Expression expr)) { 17 UnlinkedConstBuilder serializeConstExpr(Expression expr)) {
18 if (node is ConstructorFieldInitializer) { 18 if (node is ConstructorFieldInitializer) {
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 strings.add(element.value); 363 strings.add(element.value);
364 } else { 364 } else {
365 _serialize((element as InterpolationExpression).expression); 365 _serialize((element as InterpolationExpression).expression);
366 } 366 }
367 } 367 }
368 operations.add(UnlinkedConstOperation.concatenate); 368 operations.add(UnlinkedConstOperation.concatenate);
369 ints.add(interpolation.elements.length); 369 ints.add(interpolation.elements.length);
370 } 370 }
371 } 371 }
372 } 372 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_ast.dart ('k') | pkg/analyzer/lib/src/task/dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698