nitc :: actors_injection_phase
Injects model for the classes annotated with "is actor" sonitc :: astbuilder
Instantiation and transformation of semantic nodes in the AST of expressions and statementsnitc :: commands_ini
FileServer
action, which is a standard and minimal file server
HttpRequest
class and services to create it
nitc :: i18n_phase
Basic support of internationalization through the generation of id-to-string tablesSerializable::inspect
to show more useful information
nitc :: modelbuilder
more_collections :: more_collections
Highly specific, but useful, collections-related classes.threaded
annotation
serialization :: serialization_core
Abstract services to serialize Nit objects to different formatsnitc :: serialization_model_phase
Phase generating methods (model-only) to serialize Nit objectsdeserialize_json
and JsonDeserializer
serialize_to_json
and JsonSerializer
nitc :: toolcontext
Common command-line tool infrastructure than handle options and error messagesnitc :: uml_module
Services for generation of a UML package diagram based on aModel
core :: union_find
union–find algorithm using an efficient disjoint-set data structure
# Highlight and collect messages from a piece of code
module api_light
import api_base
redef class APIRouter
redef init do
super
use("/light/", new APILight(config))
end
end
# Highlight handler accept source code as POST data and render it as HTML with nitpick messages
class APILight
super APIHandler
redef fun post(req, res) do
var hl = new HtmlightVisitor
var hlcode = hl.highlightcode(req.body)
res.api_json(req, hlcode)
end
end
src/doc/api/api_light.nit:15,1--36,3