def METHOD_NAME(ast: Document) -> Dict[str, FragmentDefinition]:
    fragments: Dict[str, FragmentDefinition] = {}
    for definition in ast.definitions:
        if isinstance(definition, FragmentDefinition):
            fragments[definition.name.value] = definition
    return fragments