module Analyzer::Haskell::Helper

Overview

Shared helpers for the Haskell framework analyzers (Scotty, Servant).

Extended Modules

Defined in:

analyzer/analyzers/haskell/haskell_helper.cr

Instance Method Summary

Instance Method Detail

def strip_haskell_comments(text : String) : String #

Blank out -- line comments and nested {- -} block comments while PRESERVING newlines/offsets, so a multi-line comment doesn't collapse lines and shift every later endpoint's reported line number.


[View source]