writers
and the required_declarations
A file unit aims to be autonomous and is made or one or more CodeWriter
s.
nitc :: CodeFile :: _required_declarations
Required declarations keysnitc :: CodeFile :: defaultinit
nitc :: CodeFile :: required_declarations
Required declarations keysnitc :: CodeFile :: required_declarations=
Required declarations keysnitc :: CodeFile :: _required_declarations
Required declarations keyscore :: Object :: class_factory
Implementation used byget_class
to create the specific class.
nitc :: CodeFile :: defaultinit
core :: Object :: defaultinit
core :: Object :: is_same_instance
Return true ifself
and other
are the same instance (i.e. same identity).
core :: Object :: is_same_serialized
Isself
the same as other
in a serialization context?
core :: Object :: is_same_type
Return true ifself
and other
have the same dynamic type.
core :: Object :: native_class_name
The class name of the object in CString format.core :: Object :: output_class_name
Display class name on stdout (debug only).nitc :: CodeFile :: required_declarations
Required declarations keysnitc :: CodeFile :: required_declarations=
Required declarations keys
# C code file generated from the `writers` and the `required_declarations`
#
# A file unit aims to be autonomous and is made or one or more `CodeWriter`s.
class CodeFile
# Basename of the file, will be appended by `.h` and `.c`
var name: String
# `CodeWriter` used in sequence to fill the top of the body, then the bottom
var writers = new Array[CodeWriter]
# Required declarations keys
#
# See: `provide_declaration`
var required_declarations = new HashSet[String]
end
src/compiler/abstract_compiler.nit:1277,1--1291,3