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

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

Issue 1575323003: Resynth the 'final' property of top-level variables. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: 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 unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_test.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) 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 summary_resynthesizer; 5 library summary_resynthesizer;
6 6
7 import 'package:analyzer/analyzer.dart'; 7 import 'package:analyzer/analyzer.dart';
8 import 'package:analyzer/src/generated/element.dart'; 8 import 'package:analyzer/src/generated/element.dart';
9 import 'package:analyzer/src/generated/element_handle.dart'; 9 import 'package:analyzer/src/generated/element_handle.dart';
10 import 'package:analyzer/src/generated/engine.dart'; 10 import 'package:analyzer/src/generated/engine.dart';
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 } 941 }
942 } 942 }
943 943
944 /** 944 /**
945 * Handle the parts that are common to top level variables and fields. 945 * Handle the parts that are common to top level variables and fields.
946 */ 946 */
947 void buildVariableCommonParts(PropertyInducingElementImpl element, 947 void buildVariableCommonParts(PropertyInducingElementImpl element,
948 UnlinkedVariable serializedVariable) { 948 UnlinkedVariable serializedVariable) {
949 element.type = buildType(serializedVariable.type); 949 element.type = buildType(serializedVariable.type);
950 element.const3 = serializedVariable.isConst; 950 element.const3 = serializedVariable.isConst;
951 element.final2 = serializedVariable.isFinal;
951 element.hasImplicitType = serializedVariable.hasImplicitType; 952 element.hasImplicitType = serializedVariable.hasImplicitType;
952 buildDocumentation(element, serializedVariable.documentationComment); 953 buildDocumentation(element, serializedVariable.documentationComment);
953 } 954 }
954 955
955 /** 956 /**
956 * Finish creating a [TypeParameterElement] by deserializing its bound. 957 * Finish creating a [TypeParameterElement] by deserializing its bound.
957 */ 958 */
958 void finishTypeParameter(UnlinkedTypeParam serializedTypeParameter, 959 void finishTypeParameter(UnlinkedTypeParam serializedTypeParameter,
959 TypeParameterElementImpl typeParameterElement) { 960 TypeParameterElementImpl typeParameterElement) {
960 if (serializedTypeParameter.bound != null) { 961 if (serializedTypeParameter.bound != null) {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 } 998 }
998 for (FunctionTypeAliasElement typeAlias in unit.functionTypeAliases) { 999 for (FunctionTypeAliasElement typeAlias in unit.functionTypeAliases) {
999 elementMap[typeAlias.name] = typeAlias; 1000 elementMap[typeAlias.name] = typeAlias;
1000 } 1001 }
1001 resummarizedElements[absoluteUri] = elementMap; 1002 resummarizedElements[absoluteUri] = elementMap;
1002 unitHolder = null; 1003 unitHolder = null;
1003 prelinkedUnit = null; 1004 prelinkedUnit = null;
1004 unlinkedUnit = null; 1005 unlinkedUnit = null;
1005 } 1006 }
1006 } 1007 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698