ElementDeclaration class

A declaration - top-level (class, field, etc) or a class member (method, field, etc).

Constructors

ElementDeclaration(String name, String kind, int fileIndex, int offset, int line, int column, int codeOffset, int codeLength, {String? className, String? mixinName, String? parameters})

Properties

className String?
The name of the class enclosing this declaration. If the declaration is not a class member, this field will be absent.
final
codeLength int
The length of the declaration code in the file.
final
codeOffset int
The offset of the first character of the declaration code in the file.
final
column int
The one-based index of the column containing the declaration name.
final
fileIndex int
The index of the file (in the enclosing response).
final
hashCode int
The hash code for this object.
no setterinherited
kind String
The kind of the element that corresponds to the declaration.
final
line int
The one-based index of the line containing the declaration name.
final
mixinName String?
The name of the mixin enclosing this declaration. If the declaration is not a mixin member, this field will be absent.
final
name String
The name of the declaration.
final
offset int
The offset of the declaration name in the file.
final
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.
final
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

parse(Map m) ElementDeclaration