| 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/error/listener.dart'; | 9 import 'package:analyzer/error/listener.dart'; | 
| 10 import 'package:analyzer/src/dart/scanner/reader.dart'; | 10 import 'package:analyzer/src/dart/scanner/reader.dart'; | 
| (...skipping 9536 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 9547     String text = 'f(g(p)) {}'; | 9547     String text = 'f(g(p)) {}'; | 
| 9548     UnlinkedExecutable f = serializeExecutableText(text); | 9548     UnlinkedExecutable f = serializeExecutableText(text); | 
| 9549     UnlinkedParam g = f.parameters[0]; | 9549     UnlinkedParam g = f.parameters[0]; | 
| 9550     UnlinkedParam p = g.parameters[0]; | 9550     UnlinkedParam p = g.parameters[0]; | 
| 9551     expect(g.name, 'g'); | 9551     expect(g.name, 'g'); | 
| 9552     expect(p.name, 'p'); | 9552     expect(p.name, 'p'); | 
| 9553     _assertParameterVisible(text, g, '{', '}'); | 9553     _assertParameterVisible(text, g, '{', '}'); | 
| 9554     _assertParameterZeroVisibleRange(p); | 9554     _assertParameterZeroVisibleRange(p); | 
| 9555   } | 9555   } | 
| 9556 | 9556 | 
|  | 9557   test_parameter_visibleRange_invalid_fieldFormalParameter() { | 
|  | 9558     UnlinkedExecutable m = | 
|  | 9559         findExecutable('m', executables: serializeClassText(r''' | 
|  | 9560 class C { | 
|  | 9561   int foo; | 
|  | 9562   void m(this.foo) {} | 
|  | 9563 } | 
|  | 9564 ''').executables); | 
|  | 9565     _assertParameterZeroVisibleRange(m.parameters[0]); | 
|  | 9566   } | 
|  | 9567 | 
| 9557   test_parameter_visibleRange_typedef() { | 9568   test_parameter_visibleRange_typedef() { | 
| 9558     UnlinkedTypedef type = serializeTypedefText('typedef F(x);'); | 9569     UnlinkedTypedef type = serializeTypedefText('typedef F(x);'); | 
| 9559     _assertParameterZeroVisibleRange(type.parameters[0]); | 9570     _assertParameterZeroVisibleRange(type.parameters[0]); | 
| 9560   } | 9571   } | 
| 9561 | 9572 | 
| 9562   test_part_declaration() { | 9573   test_part_declaration() { | 
| 9563     addNamedSource('/a.dart', 'part of my.lib;'); | 9574     addNamedSource('/a.dart', 'part of my.lib;'); | 
| 9564     String text = 'library my.lib; part "a.dart"; // <-part'; | 9575     String text = 'library my.lib; part "a.dart"; // <-part'; | 
| 9565     serializeLibraryText(text); | 9576     serializeLibraryText(text); | 
| 9566     expect(unlinkedUnits[0].publicNamespace.parts, hasLength(1)); | 9577     expect(unlinkedUnits[0].publicNamespace.parts, hasLength(1)); | 
| (...skipping 1130 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 10697 class _PrefixExpectation { | 10708 class _PrefixExpectation { | 
| 10698   final ReferenceKind kind; | 10709   final ReferenceKind kind; | 
| 10699   final String name; | 10710   final String name; | 
| 10700   final String absoluteUri; | 10711   final String absoluteUri; | 
| 10701   final String relativeUri; | 10712   final String relativeUri; | 
| 10702   final int numTypeParameters; | 10713   final int numTypeParameters; | 
| 10703 | 10714 | 
| 10704   _PrefixExpectation(this.kind, this.name, | 10715   _PrefixExpectation(this.kind, this.name, | 
| 10705       {this.absoluteUri, this.relativeUri, this.numTypeParameters: 0}); | 10716       {this.absoluteUri, this.relativeUri, this.numTypeParameters: 0}); | 
| 10706 } | 10717 } | 
| OLD | NEW | 
|---|