| OLD | NEW |
| 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 /** | 5 /** |
| 6 * This library is capable of producing linked summaries from unlinked | 6 * This library is capable of producing linked summaries from unlinked |
| 7 * ones (or prelinked ones). It functions by building a miniature | 7 * ones (or prelinked ones). It functions by building a miniature |
| 8 * element model to represent the contents of the summaries, and then | 8 * element model to represent the contents of the summaries, and then |
| 9 * scanning the element model to gather linked information and adding | 9 * scanning the element model to gather linked information and adding |
| 10 * it to the summary data structures. | 10 * it to the summary data structures. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 * - Where possible, we favor method dispatch instead of "is" and "as" | 57 * - Where possible, we favor method dispatch instead of "is" and "as" |
| 58 * checks. E.g. see [ReferenceableElementForLink.asConstructor]. | 58 * checks. E.g. see [ReferenceableElementForLink.asConstructor]. |
| 59 */ | 59 */ |
| 60 import 'package:analyzer/dart/ast/ast.dart'; | 60 import 'package:analyzer/dart/ast/ast.dart'; |
| 61 import 'package:analyzer/dart/ast/token.dart' show TokenType; | 61 import 'package:analyzer/dart/ast/token.dart' show TokenType; |
| 62 import 'package:analyzer/dart/element/element.dart'; | 62 import 'package:analyzer/dart/element/element.dart'; |
| 63 import 'package:analyzer/dart/element/type.dart'; | 63 import 'package:analyzer/dart/element/type.dart'; |
| 64 import 'package:analyzer/src/dart/constant/value.dart'; | 64 import 'package:analyzer/src/dart/constant/value.dart'; |
| 65 import 'package:analyzer/src/dart/element/element.dart'; | 65 import 'package:analyzer/src/dart/element/element.dart'; |
| 66 import 'package:analyzer/src/dart/element/type.dart'; | 66 import 'package:analyzer/src/dart/element/type.dart'; |
| 67 import 'package:analyzer/src/dart/resolver/inheritance_manager.dart'; |
| 67 import 'package:analyzer/src/generated/engine.dart'; | 68 import 'package:analyzer/src/generated/engine.dart'; |
| 68 import 'package:analyzer/src/generated/resolver.dart'; | 69 import 'package:analyzer/src/generated/resolver.dart'; |
| 69 import 'package:analyzer/src/generated/utilities_dart.dart'; | 70 import 'package:analyzer/src/generated/utilities_dart.dart'; |
| 70 import 'package:analyzer/src/summary/format.dart'; | 71 import 'package:analyzer/src/summary/format.dart'; |
| 71 import 'package:analyzer/src/summary/idl.dart'; | 72 import 'package:analyzer/src/summary/idl.dart'; |
| 72 import 'package:analyzer/src/summary/prelink.dart'; | 73 import 'package:analyzer/src/summary/prelink.dart'; |
| 73 import 'package:analyzer/src/task/strong_mode.dart'; | 74 import 'package:analyzer/src/task/strong_mode.dart'; |
| 74 | 75 |
| 75 bool isIncrementOrDecrement(UnlinkedExprAssignOperator operator) { | 76 bool isIncrementOrDecrement(UnlinkedExprAssignOperator operator) { |
| 76 switch (operator) { | 77 switch (operator) { |
| (...skipping 4270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4347 if (type is InterfaceType) { | 4348 if (type is InterfaceType) { |
| 4348 Element result = type.lookUpGetter(name, compilationUnit.library); | 4349 Element result = type.lookUpGetter(name, compilationUnit.library); |
| 4349 result ??= type.lookUpMethod(name, compilationUnit.library); | 4350 result ??= type.lookUpMethod(name, compilationUnit.library); |
| 4350 return result; | 4351 return result; |
| 4351 } | 4352 } |
| 4352 } | 4353 } |
| 4353 // TODO(scheglov): implement for propagated types | 4354 // TODO(scheglov): implement for propagated types |
| 4354 return null; | 4355 return null; |
| 4355 } | 4356 } |
| 4356 } | 4357 } |
| OLD | NEW |