| 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 analyzer.test.src.summary.summary_common; | 5 library analyzer.test.src.summary.summary_common; |
| 6 | 6 |
| 7 import 'package:analyzer/analyzer.dart'; | 7 import 'package:analyzer/analyzer.dart'; |
| 8 import 'package:analyzer/dart/ast/ast.dart'; | 8 import 'package:analyzer/dart/ast/ast.dart'; |
| 9 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
| 10 import 'package:analyzer/src/generated/engine.dart'; | 10 import 'package:analyzer/src/generated/engine.dart'; |
| (...skipping 4749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4760 test_field_propagated_type_final_immediate() { | 4760 test_field_propagated_type_final_immediate() { |
| 4761 UnlinkedVariable v = | 4761 UnlinkedVariable v = |
| 4762 serializeClassText('class C { final v = 0; }').fields[0]; | 4762 serializeClassText('class C { final v = 0; }').fields[0]; |
| 4763 checkLinkedTypeSlot(v.propagatedTypeSlot, 'dart:core', 'dart:core', 'int'); | 4763 checkLinkedTypeSlot(v.propagatedTypeSlot, 'dart:core', 'dart:core', 'int'); |
| 4764 } | 4764 } |
| 4765 | 4765 |
| 4766 test_field_static() { | 4766 test_field_static() { |
| 4767 UnlinkedVariable variable = | 4767 UnlinkedVariable variable = |
| 4768 serializeClassText('class C { static int i; }').fields[0]; | 4768 serializeClassText('class C { static int i; }').fields[0]; |
| 4769 expect(variable.isStatic, isTrue); | 4769 expect(variable.isStatic, isTrue); |
| 4770 expect(variable.constExpr, isNull); |
| 4771 } |
| 4772 |
| 4773 test_field_static_final() { |
| 4774 UnlinkedVariable variable = |
| 4775 serializeClassText('class C { static final int i = 0; }').fields[0]; |
| 4776 expect(variable.isStatic, isTrue); |
| 4777 expect(variable.isFinal, isTrue); |
| 4778 expect(variable.constExpr, isNull); |
| 4770 } | 4779 } |
| 4771 | 4780 |
| 4772 test_fully_linked_references_follow_other_references() { | 4781 test_fully_linked_references_follow_other_references() { |
| 4773 if (skipFullyLinkedData) { | 4782 if (skipFullyLinkedData) { |
| 4774 return; | 4783 return; |
| 4775 } | 4784 } |
| 4776 serializeLibraryText('final x = 0; String y;'); | 4785 serializeLibraryText('final x = 0; String y;'); |
| 4777 checkLinkedTypeSlot(unlinkedUnits[0].variables[0].propagatedTypeSlot, | 4786 checkLinkedTypeSlot(unlinkedUnits[0].variables[0].propagatedTypeSlot, |
| 4778 'dart:core', 'dart:core', 'int'); | 4787 'dart:core', 'dart:core', 'int'); |
| 4779 checkTypeRef( | 4788 checkTypeRef( |
| (...skipping 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6627 final String absoluteUri; | 6636 final String absoluteUri; |
| 6628 final String relativeUri; | 6637 final String relativeUri; |
| 6629 final int numTypeParameters; | 6638 final int numTypeParameters; |
| 6630 | 6639 |
| 6631 _PrefixExpectation(this.kind, this.name, | 6640 _PrefixExpectation(this.kind, this.name, |
| 6632 {this.inLibraryDefiningUnit: false, | 6641 {this.inLibraryDefiningUnit: false, |
| 6633 this.absoluteUri, | 6642 this.absoluteUri, |
| 6634 this.relativeUri, | 6643 this.relativeUri, |
| 6635 this.numTypeParameters: 0}); | 6644 this.numTypeParameters: 0}); |
| 6636 } | 6645 } |
| OLD | NEW |