definitions property

List<ExecutableDefinition> get definitions

Implementation

List<ExecutableDefinition> get definitions => astNode.definitions
    .cast<ExecutableDefinitionNode>()
    .map((def) => ExecutableDefinition.fromNode(def, getType))
    .toList();