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

Unified Diff: pkg/analyzer/lib/src/generated/element.dart

Issue 192303002: Support for @DartName and @DartOptional annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analyzer/lib/src/generated/element.dart
diff --git a/pkg/analyzer/lib/src/generated/element.dart b/pkg/analyzer/lib/src/generated/element.dart
index e66201676f296fa1c5cfebee07e00f07d336a56c..cb78e2dc488c7d5759369ed26d900c4d0143e23b 100644
--- a/pkg/analyzer/lib/src/generated/element.dart
+++ b/pkg/analyzer/lib/src/generated/element.dart
@@ -2528,7 +2528,7 @@ class ClassElementImpl extends ElementImpl implements ClassElement {
*
* @param name the name of this element
*/
- ClassElementImpl(Identifier name) : super.con1(name);
+ ClassElementImpl(Identifier name) : super.forNode(name);
accept(ElementVisitor visitor) => visitor.visitClassElement(this);
@@ -3035,7 +3035,7 @@ class CompilationUnitElementImpl extends ElementImpl implements CompilationUnitE
*
* @param name the name of this element
*/
- CompilationUnitElementImpl(String name) : super.con2(name, -1);
+ CompilationUnitElementImpl(String name) : super(name, -1);
accept(ElementVisitor visitor) => visitor.visitCompilationUnitElement(this);
@@ -3452,7 +3452,7 @@ class DynamicElementImpl extends ElementImpl {
* created except as part of creating the type associated with this element. The single instance
* of this class should be accessed through the method [getInstance].
*/
- DynamicElementImpl() : super.con2(Keyword.DYNAMIC.syntax, -1) {
+ DynamicElementImpl() : super(Keyword.DYNAMIC.syntax, -1) {
setModifier(Modifier.SYNTHETIC, true);
}
@@ -3590,7 +3590,7 @@ abstract class ElementImpl implements Element {
*
* @param name the name of this element
*/
- ElementImpl.con1(Identifier name) : this.con2(name == null ? "" : name.name, name == null ? -1 : name.offset);
+ ElementImpl.forNode(Identifier name) : this(name == null ? "" : name.name, name == null ? -1 : name.offset);
/**
* Initialize a newly created element to have the given name.
@@ -3599,7 +3599,7 @@ abstract class ElementImpl implements Element {
* @param nameOffset the offset of the name of this element in the file that contains the
* declaration of this element
*/
- ElementImpl.con2(String name, this.nameOffset) {
+ ElementImpl(String name, this.nameOffset) {
this._name = StringUtilities.intern(name);
}
@@ -4161,7 +4161,7 @@ abstract class ExecutableElementImpl extends ElementImpl implements ExecutableEl
*
* @param name the name of this element
*/
- ExecutableElementImpl.con1(Identifier name) : super.con1(name);
+ ExecutableElementImpl.con1(Identifier name) : super.forNode(name);
/**
* Initialize a newly created executable element to have the given name.
@@ -4170,7 +4170,7 @@ abstract class ExecutableElementImpl extends ElementImpl implements ExecutableEl
* @param nameOffset the offset of the name of this element in the file that contains the
* declaration of this element
*/
- ExecutableElementImpl.con2(String name, int nameOffset) : super.con2(name, nameOffset);
+ ExecutableElementImpl.con2(String name, int nameOffset) : super(name, nameOffset);
ElementImpl getChild(String identifier) {
for (ExecutableElement function in _functions) {
@@ -4326,7 +4326,7 @@ class ExportElementImpl extends ElementImpl implements ExportElement {
/**
* Initialize a newly created export element.
*/
- ExportElementImpl() : super.con1(null);
+ ExportElementImpl() : super.forNode(null);
accept(ElementVisitor visitor) => visitor.visitExportElement(this);
@@ -4536,7 +4536,7 @@ class FunctionTypeAliasElementImpl extends ElementImpl implements FunctionTypeAl
*
* @param name the name of this element
*/
- FunctionTypeAliasElementImpl(Identifier name) : super.con1(name);
+ FunctionTypeAliasElementImpl(Identifier name) : super.forNode(name);
accept(ElementVisitor visitor) => visitor.visitFunctionTypeAliasElement(this);
@@ -4709,7 +4709,7 @@ class HtmlElementImpl extends ElementImpl implements HtmlElement {
* @param context the analysis context in which the HTML file is defined
* @param name the name of this element
*/
- HtmlElementImpl(this.context, String name) : super.con2(name, -1);
+ HtmlElementImpl(this.context, String name) : super(name, -1);
accept(ElementVisitor visitor) => visitor.visitHtmlElement(this);
@@ -4772,7 +4772,7 @@ abstract class HtmlScriptElementImpl extends ElementImpl implements HtmlScriptEl
*
* @param node the XML node from which this element is derived (not `null`)
*/
- HtmlScriptElementImpl(XmlTagNode node) : super.con2(node.tag, node.tagToken.offset);
+ HtmlScriptElementImpl(XmlTagNode node) : super(node.tag, node.tagToken.offset);
}
/**
@@ -4818,7 +4818,7 @@ class ImportElementImpl extends ElementImpl implements ImportElement {
*
* @param offset the directive offset, may be `-1` if synthetic.
*/
- ImportElementImpl(int offset) : super.con2(null, offset);
+ ImportElementImpl(int offset) : super(null, offset);
accept(ElementVisitor visitor) => visitor.visitImportElement(this);
@@ -4865,7 +4865,7 @@ class LabelElementImpl extends ElementImpl implements LabelElement {
* statement
* @param onSwitchMember `true` if this label is associated with a `switch` member
*/
- LabelElementImpl(Identifier name, bool onSwitchStatement, bool onSwitchMember) : super.con1(name) {
+ LabelElementImpl(Identifier name, bool onSwitchStatement, bool onSwitchMember) : super.forNode(name) {
this._onSwitchStatement = onSwitchStatement;
this._onSwitchMember = onSwitchMember;
}
@@ -4980,7 +4980,7 @@ class LibraryElementImpl extends ElementImpl implements LibraryElement {
* @param context the analysis context in which the library is defined
* @param name the name of this element
*/
- LibraryElementImpl(this.context, LibraryIdentifier name) : super.con1(name);
+ LibraryElementImpl(this.context, LibraryIdentifier name) : super.forNode(name);
accept(ElementVisitor visitor) => visitor.visitLibraryElement(this);
@@ -5903,7 +5903,7 @@ class PrefixElementImpl extends ElementImpl implements PrefixElement {
*
* @param name the name of this element
*/
- PrefixElementImpl(Identifier name) : super.con1(name);
+ PrefixElementImpl(Identifier name) : super.forNode(name);
accept(ElementVisitor visitor) => visitor.visitPrefixElement(this);
@@ -6148,7 +6148,7 @@ abstract class ToolkitObjectElementImpl extends ElementImpl implements ToolkitOb
* @param nameOffset the offset of the name of this element in the file that contains the
* declaration of this element
*/
- ToolkitObjectElementImpl(String name, int nameOffset) : super.con2(name, nameOffset);
+ ToolkitObjectElementImpl(String name, int nameOffset) : super(name, nameOffset);
}
/**
@@ -6207,7 +6207,7 @@ class TypeParameterElementImpl extends ElementImpl implements TypeParameterEleme
*
* @param name the name of this element
*/
- TypeParameterElementImpl(Identifier name) : super.con1(name);
+ TypeParameterElementImpl(Identifier name) : super.forNode(name);
accept(ElementVisitor visitor) => visitor.visitTypeParameterElement(this);
@@ -6247,7 +6247,7 @@ abstract class VariableElementImpl extends ElementImpl implements VariableElemen
*
* @param name the name of this element
*/
- VariableElementImpl.con1(Identifier name) : super.con1(name);
+ VariableElementImpl.con1(Identifier name) : super.forNode(name);
/**
* Initialize a newly created variable element to have the given name.
@@ -6256,7 +6256,7 @@ abstract class VariableElementImpl extends ElementImpl implements VariableElemen
* @param nameOffset the offset of the name of this element in the file that contains the
* declaration of this element
*/
- VariableElementImpl.con2(String name, int nameOffset) : super.con2(name, nameOffset);
+ VariableElementImpl.con2(String name, int nameOffset) : super(name, nameOffset);
/**
* Return the result of evaluating this variable's initializer as a compile-time constant

Powered by Google App Engine
This is Rietveld 408576698