Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(159)

Side by Side Diff: pkg/analyzer/lib/src/generated/element.dart

Issue 1199303002: Mark more code as deprecated (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.element; 8 library engine.element;
9 9
10 import 'dart:collection'; 10 import 'dart:collection';
(...skipping 3244 matching lines...) Expand 10 before | Expand all | Expand 10 after
3255 /** 3255 /**
3256 * An object that can be used to visit an element structure. 3256 * An object that can be used to visit an element structure.
3257 */ 3257 */
3258 abstract class ElementVisitor<R> { 3258 abstract class ElementVisitor<R> {
3259 R visitClassElement(ClassElement element); 3259 R visitClassElement(ClassElement element);
3260 3260
3261 R visitCompilationUnitElement(CompilationUnitElement element); 3261 R visitCompilationUnitElement(CompilationUnitElement element);
3262 3262
3263 R visitConstructorElement(ConstructorElement element); 3263 R visitConstructorElement(ConstructorElement element);
3264 3264
3265 @deprecated
3265 R visitEmbeddedHtmlScriptElement(EmbeddedHtmlScriptElement element); 3266 R visitEmbeddedHtmlScriptElement(EmbeddedHtmlScriptElement element);
3266 3267
3267 R visitExportElement(ExportElement element); 3268 R visitExportElement(ExportElement element);
3268 3269
3270 @deprecated
3269 R visitExternalHtmlScriptElement(ExternalHtmlScriptElement element); 3271 R visitExternalHtmlScriptElement(ExternalHtmlScriptElement element);
3270 3272
3271 R visitFieldElement(FieldElement element); 3273 R visitFieldElement(FieldElement element);
3272 3274
3273 R visitFieldFormalParameterElement(FieldFormalParameterElement element); 3275 R visitFieldFormalParameterElement(FieldFormalParameterElement element);
3274 3276
3275 R visitFunctionElement(FunctionElement element); 3277 R visitFunctionElement(FunctionElement element);
3276 3278
3277 R visitFunctionTypeAliasElement(FunctionTypeAliasElement element); 3279 R visitFunctionTypeAliasElement(FunctionTypeAliasElement element);
3278 3280
3281 @deprecated
3279 R visitHtmlElement(HtmlElement element); 3282 R visitHtmlElement(HtmlElement element);
3280 3283
3281 R visitImportElement(ImportElement element); 3284 R visitImportElement(ImportElement element);
3282 3285
3283 R visitLabelElement(LabelElement element); 3286 R visitLabelElement(LabelElement element);
3284 3287
3285 R visitLibraryElement(LibraryElement element); 3288 R visitLibraryElement(LibraryElement element);
3286 3289
3287 R visitLocalVariableElement(LocalVariableElement element); 3290 R visitLocalVariableElement(LocalVariableElement element);
3288 3291
3289 R visitMethodElement(MethodElement element); 3292 R visitMethodElement(MethodElement element);
3290 3293
3291 R visitMultiplyDefinedElement(MultiplyDefinedElement element); 3294 R visitMultiplyDefinedElement(MultiplyDefinedElement element);
3292 3295
3293 R visitParameterElement(ParameterElement element); 3296 R visitParameterElement(ParameterElement element);
3294 3297
3295 R visitPrefixElement(PrefixElement element); 3298 R visitPrefixElement(PrefixElement element);
3296 3299
3297 R visitPropertyAccessorElement(PropertyAccessorElement element); 3300 R visitPropertyAccessorElement(PropertyAccessorElement element);
3298 3301
3299 R visitTopLevelVariableElement(TopLevelVariableElement element); 3302 R visitTopLevelVariableElement(TopLevelVariableElement element);
3300 3303
3301 R visitTypeParameterElement(TypeParameterElement element); 3304 R visitTypeParameterElement(TypeParameterElement element);
3302 } 3305 }
3303 3306
3304 /** 3307 /**
3305 * A script tag in an HTML file having content that defines a Dart library. 3308 * A script tag in an HTML file having content that defines a Dart library.
3306 */ 3309 */
3310 @deprecated
3307 abstract class EmbeddedHtmlScriptElement implements HtmlScriptElement { 3311 abstract class EmbeddedHtmlScriptElement implements HtmlScriptElement {
3308 /** 3312 /**
3309 * Return the library element defined by the content of the script tag. 3313 * Return the library element defined by the content of the script tag.
3310 */ 3314 */
3311 LibraryElement get scriptLibrary; 3315 LibraryElement get scriptLibrary;
3312 } 3316 }
3313 3317
3314 /** 3318 /**
3315 * A concrete implementation of an [EmbeddedHtmlScriptElement]. 3319 * A concrete implementation of an [EmbeddedHtmlScriptElement].
3316 */ 3320 */
3321 @deprecated
3317 class EmbeddedHtmlScriptElementImpl extends HtmlScriptElementImpl 3322 class EmbeddedHtmlScriptElementImpl extends HtmlScriptElementImpl
3318 implements EmbeddedHtmlScriptElement { 3323 implements EmbeddedHtmlScriptElement {
3319 /** 3324 /**
3320 * The library defined by the script tag's content. 3325 * The library defined by the script tag's content.
3321 */ 3326 */
3322 LibraryElement _scriptLibrary; 3327 LibraryElement _scriptLibrary;
3323 3328
3324 /** 3329 /**
3325 * Initialize a newly created script element to represent the given [node]. 3330 * Initialize a newly created script element to represent the given [node].
3326 */ 3331 */
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
3822 void appendTo(StringBuffer buffer) { 3827 void appendTo(StringBuffer buffer) {
3823 buffer.write("export "); 3828 buffer.write("export ");
3824 (exportedLibrary as LibraryElementImpl).appendTo(buffer); 3829 (exportedLibrary as LibraryElementImpl).appendTo(buffer);
3825 } 3830 }
3826 } 3831 }
3827 3832
3828 /** 3833 /**
3829 * A script tag in an HTML file having a `source` attribute that references a 3834 * A script tag in an HTML file having a `source` attribute that references a
3830 * Dart library source file. 3835 * Dart library source file.
3831 */ 3836 */
3837 @deprecated
3832 abstract class ExternalHtmlScriptElement implements HtmlScriptElement { 3838 abstract class ExternalHtmlScriptElement implements HtmlScriptElement {
3833 /** 3839 /**
3834 * Return the source referenced by this element, or `null` if this element 3840 * Return the source referenced by this element, or `null` if this element
3835 * does not reference a Dart library source file. 3841 * does not reference a Dart library source file.
3836 */ 3842 */
3837 Source get scriptSource; 3843 Source get scriptSource;
3838 } 3844 }
3839 3845
3840 /** 3846 /**
3841 * A concrete implementation of an [ExternalHtmlScriptElement]. 3847 * A concrete implementation of an [ExternalHtmlScriptElement].
3842 */ 3848 */
3849 @deprecated
3843 class ExternalHtmlScriptElementImpl extends HtmlScriptElementImpl 3850 class ExternalHtmlScriptElementImpl extends HtmlScriptElementImpl
3844 implements ExternalHtmlScriptElement { 3851 implements ExternalHtmlScriptElement {
3845 /** 3852 /**
3846 * The source specified in the `source` attribute or `null` if unspecified. 3853 * The source specified in the `source` attribute or `null` if unspecified.
3847 */ 3854 */
3848 Source scriptSource; 3855 Source scriptSource;
3849 3856
3850 /** 3857 /**
3851 * Initialize a newly created script element to correspond to the given 3858 * Initialize a newly created script element to correspond to the given
3852 * [node]. 3859 * [node].
(...skipping 1512 matching lines...) Expand 10 before | Expand all | Expand 10 after
5365 @override 5372 @override
5366 R visitConstructorElement(ConstructorElement element) => 5373 R visitConstructorElement(ConstructorElement element) =>
5367 visitExecutableElement(element); 5374 visitExecutableElement(element);
5368 5375
5369 R visitElement(Element element) { 5376 R visitElement(Element element) {
5370 element.visitChildren(this); 5377 element.visitChildren(this);
5371 return null; 5378 return null;
5372 } 5379 }
5373 5380
5374 @override 5381 @override
5382 @deprecated
5375 R visitEmbeddedHtmlScriptElement(EmbeddedHtmlScriptElement element) => 5383 R visitEmbeddedHtmlScriptElement(EmbeddedHtmlScriptElement element) =>
5376 visitHtmlScriptElement(element); 5384 visitHtmlScriptElement(element);
5377 5385
5378 R visitExecutableElement(ExecutableElement element) => visitElement(element); 5386 R visitExecutableElement(ExecutableElement element) => visitElement(element);
5379 5387
5380 @override 5388 @override
5381 R visitExportElement(ExportElement element) => visitElement(element); 5389 R visitExportElement(ExportElement element) => visitElement(element);
5382 5390
5383 @override 5391 @override
5392 @deprecated
5384 R visitExternalHtmlScriptElement(ExternalHtmlScriptElement element) => 5393 R visitExternalHtmlScriptElement(ExternalHtmlScriptElement element) =>
5385 visitHtmlScriptElement(element); 5394 visitHtmlScriptElement(element);
5386 5395
5387 @override 5396 @override
5388 R visitFieldElement(FieldElement element) => 5397 R visitFieldElement(FieldElement element) =>
5389 visitPropertyInducingElement(element); 5398 visitPropertyInducingElement(element);
5390 5399
5391 @override 5400 @override
5392 R visitFieldFormalParameterElement(FieldFormalParameterElement element) => 5401 R visitFieldFormalParameterElement(FieldFormalParameterElement element) =>
5393 visitParameterElement(element); 5402 visitParameterElement(element);
5394 5403
5395 @override 5404 @override
5396 R visitFunctionElement(FunctionElement element) => visitLocalElement(element); 5405 R visitFunctionElement(FunctionElement element) => visitLocalElement(element);
5397 5406
5398 @override 5407 @override
5399 R visitFunctionTypeAliasElement(FunctionTypeAliasElement element) => 5408 R visitFunctionTypeAliasElement(FunctionTypeAliasElement element) =>
5400 visitElement(element); 5409 visitElement(element);
5401 5410
5402 @override 5411 @override
5412 @deprecated
5403 R visitHtmlElement(HtmlElement element) => visitElement(element); 5413 R visitHtmlElement(HtmlElement element) => visitElement(element);
5404 5414
5415 @deprecated
5405 R visitHtmlScriptElement(HtmlScriptElement element) => visitElement(element); 5416 R visitHtmlScriptElement(HtmlScriptElement element) => visitElement(element);
5406 5417
5407 @override 5418 @override
5408 R visitImportElement(ImportElement element) => visitElement(element); 5419 R visitImportElement(ImportElement element) => visitElement(element);
5409 5420
5410 @override 5421 @override
5411 R visitLabelElement(LabelElement element) => visitElement(element); 5422 R visitLabelElement(LabelElement element) => visitElement(element);
5412 5423
5413 @override 5424 @override
5414 R visitLibraryElement(LibraryElement element) => visitElement(element); 5425 R visitLibraryElement(LibraryElement element) => visitElement(element);
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
5494 } 5505 }
5495 buffer.write(hiddenNames[i]); 5506 buffer.write(hiddenNames[i]);
5496 } 5507 }
5497 return buffer.toString(); 5508 return buffer.toString();
5498 } 5509 }
5499 } 5510 }
5500 5511
5501 /** 5512 /**
5502 * An HTML file. 5513 * An HTML file.
5503 */ 5514 */
5515 @deprecated
5504 abstract class HtmlElement implements Element { 5516 abstract class HtmlElement implements Element {
5505 /** 5517 /**
5506 * An empty list of HTML file elements. 5518 * An empty list of HTML file elements.
5507 */ 5519 */
5508 static const List<HtmlElement> EMPTY_LIST = const <HtmlElement>[]; 5520 static const List<HtmlElement> EMPTY_LIST = const <HtmlElement>[];
5509 5521
5510 /** 5522 /**
5511 * Return a list containing all of the script elements contained in the HTML 5523 * Return a list containing all of the script elements contained in the HTML
5512 * file. This includes scripts with libraries that are defined by the content 5524 * file. This includes scripts with libraries that are defined by the content
5513 * of a script tag as well as libraries that are referenced in the `source` 5525 * of a script tag as well as libraries that are referenced in the `source`
5514 * attribute of a script tag. 5526 * attribute of a script tag.
5515 */ 5527 */
5516 List<HtmlScriptElement> get scripts; 5528 List<HtmlScriptElement> get scripts;
5517 } 5529 }
5518 5530
5519 /** 5531 /**
5520 * A concrete implementation of an [HtmlElement]. 5532 * A concrete implementation of an [HtmlElement].
5521 */ 5533 */
5534 @deprecated
5522 class HtmlElementImpl extends ElementImpl implements HtmlElement { 5535 class HtmlElementImpl extends ElementImpl implements HtmlElement {
5523 /** 5536 /**
5524 * An empty list of HTML file elements. 5537 * An empty list of HTML file elements.
5525 */ 5538 */
5526 @deprecated // Use HtmlElement.EMPTY_LIST 5539 @deprecated // Use HtmlElement.EMPTY_LIST
5527 static const List<HtmlElement> EMPTY_ARRAY = const <HtmlElement>[]; 5540 static const List<HtmlElement> EMPTY_ARRAY = const <HtmlElement>[];
5528 5541
5529 /** 5542 /**
5530 * The analysis context in which this library is defined. 5543 * The analysis context in which this library is defined.
5531 */ 5544 */
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
5598 super.visitChildren(visitor); 5611 super.visitChildren(visitor);
5599 safelyVisitChildren(_scripts, visitor); 5612 safelyVisitChildren(_scripts, visitor);
5600 } 5613 }
5601 } 5614 }
5602 5615
5603 /** 5616 /**
5604 * A script tag in an HTML file. 5617 * A script tag in an HTML file.
5605 * 5618 *
5606 * See [EmbeddedHtmlScriptElement], and [ExternalHtmlScriptElement]. 5619 * See [EmbeddedHtmlScriptElement], and [ExternalHtmlScriptElement].
5607 */ 5620 */
5621 @deprecated
5608 abstract class HtmlScriptElement implements Element { 5622 abstract class HtmlScriptElement implements Element {
5609 /** 5623 /**
5610 * An empty list of HTML script elements. 5624 * An empty list of HTML script elements.
5611 */ 5625 */
5612 static const List<HtmlScriptElement> EMPTY_LIST = const <HtmlScriptElement>[]; 5626 static const List<HtmlScriptElement> EMPTY_LIST = const <HtmlScriptElement>[];
5613 } 5627 }
5614 5628
5615 /** 5629 /**
5616 * A concrete implementation of an [HtmlScriptElement]. 5630 * A concrete implementation of an [HtmlScriptElement].
5617 */ 5631 */
5632 @deprecated
5618 abstract class HtmlScriptElementImpl extends ElementImpl 5633 abstract class HtmlScriptElementImpl extends ElementImpl
5619 implements HtmlScriptElement { 5634 implements HtmlScriptElement {
5620 /** 5635 /**
5621 * An empty list of HTML script elements. 5636 * An empty list of HTML script elements.
5622 */ 5637 */
5623 @deprecated // Use HtmlScriptElement.EMPTY_LIST 5638 @deprecated // Use HtmlScriptElement.EMPTY_LIST
5624 static const List<HtmlScriptElement> EMPTY_ARRAY = 5639 static const List<HtmlScriptElement> EMPTY_ARRAY =
5625 const <HtmlScriptElement>[]; 5640 const <HtmlScriptElement>[];
5626 5641
5627 /** 5642 /**
(...skipping 3714 matching lines...) Expand 10 before | Expand all | Expand 10 after
9342 return null; 9357 return null;
9343 } 9358 }
9344 9359
9345 @override 9360 @override
9346 R visitConstructorElement(ConstructorElement element) { 9361 R visitConstructorElement(ConstructorElement element) {
9347 element.visitChildren(this); 9362 element.visitChildren(this);
9348 return null; 9363 return null;
9349 } 9364 }
9350 9365
9351 @override 9366 @override
9367 @deprecated
9352 R visitEmbeddedHtmlScriptElement(EmbeddedHtmlScriptElement element) { 9368 R visitEmbeddedHtmlScriptElement(EmbeddedHtmlScriptElement element) {
9353 element.visitChildren(this); 9369 element.visitChildren(this);
9354 return null; 9370 return null;
9355 } 9371 }
9356 9372
9357 @override 9373 @override
9358 R visitExportElement(ExportElement element) { 9374 R visitExportElement(ExportElement element) {
9359 element.visitChildren(this); 9375 element.visitChildren(this);
9360 return null; 9376 return null;
9361 } 9377 }
9362 9378
9363 @override 9379 @override
9380 @deprecated
9364 R visitExternalHtmlScriptElement(ExternalHtmlScriptElement element) { 9381 R visitExternalHtmlScriptElement(ExternalHtmlScriptElement element) {
9365 element.visitChildren(this); 9382 element.visitChildren(this);
9366 return null; 9383 return null;
9367 } 9384 }
9368 9385
9369 @override 9386 @override
9370 R visitFieldElement(FieldElement element) { 9387 R visitFieldElement(FieldElement element) {
9371 element.visitChildren(this); 9388 element.visitChildren(this);
9372 return null; 9389 return null;
9373 } 9390 }
(...skipping 10 matching lines...) Expand all
9384 return null; 9401 return null;
9385 } 9402 }
9386 9403
9387 @override 9404 @override
9388 R visitFunctionTypeAliasElement(FunctionTypeAliasElement element) { 9405 R visitFunctionTypeAliasElement(FunctionTypeAliasElement element) {
9389 element.visitChildren(this); 9406 element.visitChildren(this);
9390 return null; 9407 return null;
9391 } 9408 }
9392 9409
9393 @override 9410 @override
9411 @deprecated
9394 R visitHtmlElement(HtmlElement element) { 9412 R visitHtmlElement(HtmlElement element) {
9395 element.visitChildren(this); 9413 element.visitChildren(this);
9396 return null; 9414 return null;
9397 } 9415 }
9398 9416
9399 @override 9417 @override
9400 R visitImportElement(ImportElement element) { 9418 R visitImportElement(ImportElement element) {
9401 element.visitChildren(this); 9419 element.visitChildren(this);
9402 return null; 9420 return null;
9403 } 9421 }
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
9532 @override 9550 @override
9533 R visitClassElement(ClassElement element) => null; 9551 R visitClassElement(ClassElement element) => null;
9534 9552
9535 @override 9553 @override
9536 R visitCompilationUnitElement(CompilationUnitElement element) => null; 9554 R visitCompilationUnitElement(CompilationUnitElement element) => null;
9537 9555
9538 @override 9556 @override
9539 R visitConstructorElement(ConstructorElement element) => null; 9557 R visitConstructorElement(ConstructorElement element) => null;
9540 9558
9541 @override 9559 @override
9560 @deprecated
9542 R visitEmbeddedHtmlScriptElement(EmbeddedHtmlScriptElement element) => null; 9561 R visitEmbeddedHtmlScriptElement(EmbeddedHtmlScriptElement element) => null;
9543 9562
9544 @override 9563 @override
9545 R visitExportElement(ExportElement element) => null; 9564 R visitExportElement(ExportElement element) => null;
9546 9565
9547 @override 9566 @override
9567 @deprecated
9548 R visitExternalHtmlScriptElement(ExternalHtmlScriptElement element) => null; 9568 R visitExternalHtmlScriptElement(ExternalHtmlScriptElement element) => null;
9549 9569
9550 @override 9570 @override
9551 R visitFieldElement(FieldElement element) => null; 9571 R visitFieldElement(FieldElement element) => null;
9552 9572
9553 @override 9573 @override
9554 R visitFieldFormalParameterElement(FieldFormalParameterElement element) => 9574 R visitFieldFormalParameterElement(FieldFormalParameterElement element) =>
9555 null; 9575 null;
9556 9576
9557 @override 9577 @override
9558 R visitFunctionElement(FunctionElement element) => null; 9578 R visitFunctionElement(FunctionElement element) => null;
9559 9579
9560 @override 9580 @override
9561 R visitFunctionTypeAliasElement(FunctionTypeAliasElement element) => null; 9581 R visitFunctionTypeAliasElement(FunctionTypeAliasElement element) => null;
9562 9582
9563 @override 9583 @override
9584 @deprecated
9564 R visitHtmlElement(HtmlElement element) => null; 9585 R visitHtmlElement(HtmlElement element) => null;
9565 9586
9566 @override 9587 @override
9567 R visitImportElement(ImportElement element) => null; 9588 R visitImportElement(ImportElement element) => null;
9568 9589
9569 @override 9590 @override
9570 R visitLabelElement(LabelElement element) => null; 9591 R visitLabelElement(LabelElement element) => null;
9571 9592
9572 @override 9593 @override
9573 R visitLibraryElement(LibraryElement element) => null; 9594 R visitLibraryElement(LibraryElement element) => null;
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
10476 10497
10477 @override 10498 @override
10478 void visitElement(Element element) { 10499 void visitElement(Element element) {
10479 int offset = element.nameOffset; 10500 int offset = element.nameOffset;
10480 if (offset != -1) { 10501 if (offset != -1) {
10481 map[offset] = element; 10502 map[offset] = element;
10482 } 10503 }
10483 super.visitElement(element); 10504 super.visitElement(element);
10484 } 10505 }
10485 } 10506 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/generated/engine.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698