OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 // This code was auto-generated, is not intended to be edited, and is subject to | 5 // This code was auto-generated, is not intended to be edited, and is subject to |
6 // significant change. Please see the README file for more information. | 6 // significant change. Please see the README file for more information. |
7 | 7 |
8 library engine.testing.element_factory; | 8 library engine.testing.element_factory; |
9 | 9 |
10 import 'dart:collection'; | 10 import 'dart:collection'; |
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
366 new PropertyAccessorElementImpl.forVariable(field); | 366 new PropertyAccessorElementImpl.forVariable(field); |
367 getter.getter = true; | 367 getter.getter = true; |
368 getter.variable = field; | 368 getter.variable = field; |
369 getter.returnType = type; | 369 getter.returnType = type; |
370 field.getter = getter; | 370 field.getter = getter; |
371 FunctionTypeImpl getterType = new FunctionTypeImpl(getter); | 371 FunctionTypeImpl getterType = new FunctionTypeImpl(getter); |
372 getter.type = getterType; | 372 getter.type = getterType; |
373 return getter; | 373 return getter; |
374 } | 374 } |
375 | 375 |
| 376 @deprecated |
376 static HtmlElementImpl htmlUnit(AnalysisContext context, String fileName) { | 377 static HtmlElementImpl htmlUnit(AnalysisContext context, String fileName) { |
377 Source source = | 378 Source source = |
378 new NonExistingSource(fileName, toUri(fileName), UriKind.FILE_URI); | 379 new NonExistingSource(fileName, toUri(fileName), UriKind.FILE_URI); |
379 HtmlElementImpl unit = new HtmlElementImpl(context, fileName); | 380 HtmlElementImpl unit = new HtmlElementImpl(context, fileName); |
380 unit.source = source; | 381 unit.source = source; |
381 return unit; | 382 return unit; |
382 } | 383 } |
383 | 384 |
384 static ImportElementImpl importFor( | 385 static ImportElementImpl importFor( |
385 LibraryElement importedLibrary, PrefixElement prefix, | 386 LibraryElement importedLibrary, PrefixElement prefix, |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 } | 556 } |
556 return variable; | 557 return variable; |
557 } | 558 } |
558 | 559 |
559 static TypeParameterElementImpl typeParameterElement(String name) { | 560 static TypeParameterElementImpl typeParameterElement(String name) { |
560 TypeParameterElementImpl element = new TypeParameterElementImpl(name, 0); | 561 TypeParameterElementImpl element = new TypeParameterElementImpl(name, 0); |
561 element.type = new TypeParameterTypeImpl(element); | 562 element.type = new TypeParameterTypeImpl(element); |
562 return element; | 563 return element; |
563 } | 564 } |
564 } | 565 } |
OLD | NEW |