purescript-0.9.3: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell98

Language.PureScript.Ide.SourceFile

Description

Getting declarations from PureScript sourcefiles

Synopsis

Documentation

extractSpans Source #

Arguments

:: SourceSpan

The surrounding span

-> Declaration

The declaration to extract spans from

-> [(Either Text Text, SourceSpan)]

A Right corresponds to a type level declaration, and a Left to a value level one

Given a surrounding Sourcespan and a Declaration from the PS AST, extracts definition sites inside that Declaration.