ktn_dodger (katana_code v2.4.1)

View Source

Summary

Types

errorinfo/0

-type errorinfo() :: erl_scan:error_info().

option/0

-type option() :: atom() | {atom(), term()}.

Functions

parse(Dev)

-spec parse(file:io_device()) -> {ok, erl_syntax:forms()}.

parse(Dev, L)

-spec parse(file:io_device(), erl_anno:location()) -> {ok, erl_syntax:forms()}.

parse(Dev, L0, Options)

-spec parse(file:io_device(), erl_anno:location(), [option()]) -> {ok, erl_syntax:forms()}.

parse_file(File)

-spec parse_file(file:filename()) -> {ok, erl_syntax:forms()} | {error, errorinfo()}.

parse_file(File, Options)

-spec parse_file(file:filename(), [option()]) -> {ok, erl_syntax:forms()} | {error, errorinfo()}.

parse_form(Dev, L0)

-spec parse_form(file:io_device(), erl_anno:location()) ->
                    {ok, erl_syntax:forms(), erl_anno:location()} |
                    {eof, erl_anno:location()} |
                    {error, errorinfo(), erl_anno:location()}.

parse_form(Dev, L0, Options)

-spec parse_form(file:io_device(), erl_anno:location(), [option()]) ->
                    {ok, erl_syntax:forms(), erl_anno:location()} |
                    {eof, erl_anno:location()} |
                    {error, errorinfo(), erl_anno:location()}.

quick_parse(Dev)

-spec quick_parse(file:io_device()) -> {ok, erl_syntax:forms()}.

quick_parse(Dev, L)

-spec quick_parse(file:io_device(), erl_anno:location()) -> {ok, erl_syntax:forms()}.

quick_parse(Dev, L0, Options)

-spec quick_parse(file:io_device(), erl_anno:location(), [option()]) -> {ok, erl_syntax:forms()}.

quick_parse_file(File)

-spec quick_parse_file(file:filename()) -> {ok, erl_syntax:forms()} | {error, errorinfo()}.

quick_parse_file(File, Options)

-spec quick_parse_file(file:filename(), [option()]) -> {ok, erl_syntax:forms()} | {error, errorinfo()}.

quick_parse_form(Dev, L0)

-spec quick_parse_form(file:io_device(), erl_anno:location()) ->
                          {ok, erl_syntax:forms(), erl_anno:location()} |
                          {eof, erl_anno:location()} |
                          {error, errorinfo(), erl_anno:location()}.

quick_parse_form(Dev, L0, Options)

-spec quick_parse_form(file:io_device(), erl_anno:location(), [option()]) ->
                          {ok, erl_syntax:forms(), erl_anno:location()} |
                          {eof, erl_anno:location()} |
                          {error, errorinfo(), erl_anno:location()}.

tokens_to_string(Ts)

-spec tokens_to_string([term()]) -> string().