ElementDeclaration class
ElementDeclaration
{ "name": String "kind": ElementKind "fileIndex": int "offset": int "line": int "column": int "codeOffset": int "codeLength": int "className": optional String "mixinName": optional String "parameters": optional String }
Clients may not extend, implement or mix-in this class.
Constructors
- ElementDeclaration(String name, ElementKind kind, int fileIndex, int offset, int line, int column, int codeOffset, int codeLength, {String? className, String? mixinName, String? parameters})
- ElementDeclaration.fromJson(JsonDecoder jsonDecoder, String jsonPath, Object? json)
-
factory
Properties
- className ↔ String?
-
The name of the class enclosing this declaration. If the declaration is
not a class member, this field will be absent.
getter/setter pair
- codeLength ↔ int
-
The length of the declaration code in the file.
getter/setter pair
- codeOffset ↔ int
-
The offset of the first character of the declaration code in the file.
getter/setter pair
- column ↔ int
-
The one-based index of the column containing the declaration name.
getter/setter pair
- fileIndex ↔ int
-
The index of the file (in the enclosing response).
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- kind ↔ ElementKind
-
The kind of the element that corresponds to the declaration.
getter/setter pair
- line ↔ int
-
The one-based index of the line containing the declaration name.
getter/setter pair
- mixinName ↔ String?
-
The name of the mixin enclosing this declaration. If the declaration is
not a mixin member, this field will be absent.
getter/setter pair
- name ↔ String
-
The name of the declaration.
getter/setter pair
- offset ↔ int
-
The offset of the declaration name in the file.
getter/setter pair
- parameters ↔ String?
-
The parameter list for the element. If the element is not a method or
function this field will not be defined. If the element doesn't have
parameters (e.g. getter), this field will not be defined. If the element
has zero parameters, this field will have a value of "()". The value
should not be treated as exact presentation of parameters, it is just
approximation of parameters to give the user general idea.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object> - Returns a JSON presentation of the object.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override