purescript-0.13.0: PureScript Programming Language Compiler

Safe HaskellNone
LanguageHaskell2010

Language.PureScript.Ide.SourceFile

Description

Getting declarations from PureScript sourcefiles

Synopsis

Documentation

extractAstInformation :: Module -> (DefinitionSites SourceSpan, TypeAnnotations) Source #

Extracts AST information from a parsed module

extractSpans Source #

Arguments

:: Declaration

The declaration to extract spans from

-> [(IdeNamespaced, SourceSpan)]

Declarations and their source locations

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

extractTypeAnnotations :: [Declaration] -> [(Ident, SourceType)] Source #

Extracts type annotations for functions from a given Module