definitions property Null safety

List<ExecutableDefinition> definitions

Implementation

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