qtil
advanced-security/qtil-swift 0.0.3
Search

Module QlFormat::Problem

A module that allows the creation of “problems” with Template strings, and exposes a submodule Query to turn those problems into query results.

To use this module, create a predicate that matches Locatable elements to Templates, and use that query to instantiate this module.

predicate problem(Locatable elem, Template msg) {
  msg = tpl("Variable named {var}").text("var", elem.(Variable).getName())
}

// Create a query for these elements with the above template:
import Problem<problem/2>::Query

// or, import the `Problem` class directly (for query reusability):
import Problem<problem/2>

Import path

import qtil.format.QLFormat

Classes

Problem

A problem class containing the results identified by the problem/2 predicate.

Modules

Query

A module that selects the Problem instances that match the given Locatable and Template parameters, and provides a query to find problems with specific messages and placeholder links.

Aliases

OptionalLocation

A class representing a placeholder location that may or may not exist.

Parameters

problempred