| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |