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

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

Issue 1714173002: Add summary support for ShowElementCombinator.end and .offset. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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.elements; 5 library serialization.elements;
6 6
7 import 'package:analyzer/dart/element/element.dart'; 7 import 'package:analyzer/dart/element/element.dart';
8 import 'package:analyzer/dart/element/type.dart'; 8 import 'package:analyzer/dart/element/type.dart';
9 import 'package:analyzer/src/dart/element/element.dart'; 9 import 'package:analyzer/src/dart/element/element.dart';
10 import 'package:analyzer/src/dart/element/member.dart'; 10 import 'package:analyzer/src/dart/element/member.dart';
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
486 } 486 }
487 487
488 /** 488 /**
489 * Serialize the given [combinator] into an [UnlinkedCombinator]. 489 * Serialize the given [combinator] into an [UnlinkedCombinator].
490 */ 490 */
491 UnlinkedCombinatorBuilder serializeCombinator( 491 UnlinkedCombinatorBuilder serializeCombinator(
492 NamespaceCombinator combinator) { 492 NamespaceCombinator combinator) {
493 UnlinkedCombinatorBuilder b = new UnlinkedCombinatorBuilder(); 493 UnlinkedCombinatorBuilder b = new UnlinkedCombinatorBuilder();
494 if (combinator is ShowElementCombinator) { 494 if (combinator is ShowElementCombinator) {
495 b.shows = combinator.shownNames; 495 b.shows = combinator.shownNames;
496 b.offset = combinator.offset;
497 b.end = combinator.end;
496 } else if (combinator is HideElementCombinator) { 498 } else if (combinator is HideElementCombinator) {
497 b.hides = combinator.hiddenNames; 499 b.hides = combinator.hiddenNames;
498 } 500 }
499 return b; 501 return b;
500 } 502 }
501 503
502 /** 504 /**
503 * Serialize the given [expression], creating an [UnlinkedConstBuilder]. 505 * Serialize the given [expression], creating an [UnlinkedConstBuilder].
504 */ 506 */
505 UnlinkedConstBuilder serializeConstExpr(Expression expression, 507 UnlinkedConstBuilder serializeConstExpr(Expression expression,
(...skipping 927 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 exportNames.add(new LinkedExportNameBuilder( 1435 exportNames.add(new LinkedExportNameBuilder(
1434 name: name, 1436 name: name,
1435 dependency: serializeDependency(dependentLibrary), 1437 dependency: serializeDependency(dependentLibrary),
1436 unit: unit, 1438 unit: unit,
1437 kind: kind)); 1439 kind: kind));
1438 } 1440 }
1439 pb.exportNames = exportNames; 1441 pb.exportNames = exportNames;
1440 return pb; 1442 return pb;
1441 } 1443 }
1442 } 1444 }
OLDNEW
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_ast.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698