Presubmit.Source.Facts.Module (presubmit v0.2.2)

Copy Markdown View Source

One defmodule, including nested ones (named Outer.Inner).

Summary

Functions

Public functions of the module.

Whether the module uses target, optionally with a matching first argument.

Types

t()

@type t() :: %Presubmit.Source.Facts.Module{
  aliases: %{optional(atom()) => module()},
  behaviours: [module()],
  body: Macro.t(),
  functions: [Presubmit.Source.Facts.Function.t()],
  line: pos_integer(),
  moduledoc: nil | false | :present,
  name: module(),
  path: String.t(),
  references: [module()],
  struct: nil | %{fields: [atom()], enforce_keys: [atom()]},
  uses: [{module(), [Macro.t()]}]
}

Functions

public_functions(module)

@spec public_functions(t()) :: [Presubmit.Source.Facts.Function.t()]

Public functions of the module.

uses?(module, target, arg \\ :any)

@spec uses?(t(), module(), term() | :any) :: boolean()

Whether the module uses target, optionally with a matching first argument.