var str = "" is writable
- init do end
redef fun visit(n) do n.accept_ast_printer(self)
end
class AnalysisManager
super Noter
var opts = new OptionContext
-
- init do end
end
abstract class Noter
class ReachingDefsAnalysis
super FineFlowAnalysis[ReachingDefsMap]
- init do end
redef fun is_forward do return true
redef fun visit( node )
end
end
end
-
- init do end
end
# Each reduca action has its own class, this one is the root of the hierarchy.
var subject: MDLine
- init do end
-
fun test_is_empty do
subject = new MDLine("")
assert subject.is_empty
private var array = new Array[nullable Jsonable]
- init do end
-
# init the JSON Array from a Nit `Collection`
init from(items: Collection[nullable Jsonable]) do
array.add_all(items)
# `params` to embed in the query like in prepared statements
var params = new JsonObject
- init do end
-
# init the query from a query string
init from_string(query: String) do
self.query = query
# Words of the first line
private var first_line = new Array[String]
- init do end
-
fun parse_http_request(full_request: String): nullable HttpRequest
do
clear_data
do
if last_current != current_node then
last_current = current_node
- var l = current_node._location
- if l != null then
- eol
- out.add(s)
- out.add("\t# {l.colored_line("0;32").split_with('\n').first}")
- has_eol = false
- eol
- return
- end
end
out.add(s)
has_eol = false
var intros = new Array[TplListElt]
var redefs = new Array[TplListElt]
- init do end
-
redef fun rendering do
addn "<div class='definition'>"
render_comment
# Add content wrapped in a <li> element
fun add_li(item: TplListItem) do elts.add item
- init do end
-
init with_classes(classes: Array[String]) do self.css_classes = classes
fun is_empty: Bool do return elts.is_empty
# CSS classes of the <li> element
var css_classes = new Array[String]
- init do end
-
init with_content(content: Streamable) do append(content)
init with_classes(content: Streamable, classes: Array[String]) do