internal/ast

Types

pub type AnotherFilesAst {
  AnotherFilesAst(Iterator(FileAst))
}

Constructors

  • AnotherFilesAst(Iterator(FileAst))
pub type FileAst {
  FileAst(AST)
}

Constructors

  • FileAst(AST)
pub type ModuleName {
  ModuleName(String)
}

Constructors

  • ModuleName(String)
pub type PublicMember {
  PublicFun(String)
  PublicConst(String)
  PublicType(String)
}

Constructors

  • PublicFun(String)
  • PublicConst(String)
  • PublicType(String)

Functions

pub fn files_ast(
  files_contents: List(FileContent),
) -> List(FileAst)
pub fn files_paths_with_ast(
  dir: FilesDir,
  test_dir: Option(FilesDir),
) -> List(#(FilePath, FileAst, AnotherFilesAst))
pub fn is_pub_member_used(
  files_ast: AnotherFilesAst,
  pub_member_name: PublicMember,
  module_full_name: ModuleFullName,
  check_usage: fn(List(Statement), PublicMember, ModuleName) ->
    Result(Nil, a),
) -> Result(Nil, Nil)
Search Document