ExC v0.4.2 IO.Printer View Source
Prints elements and errors on screen.
Link to this section Summary
Functions
Method that handles the pretty printing process.
Method that helps ExC modules to check if the output should be verbosed or not.
The modules that call this method are CodeGenerator, CodeOptimizer and CodeConnector.
Specs
label String with the element name.
Link to this section Functions
Method that handles the pretty printing process.
Specs
class class where the error occurred.
fault_element fault token that produced the error.
reason message that indicating the reason for the error.
location path the the file containing the error.
row_col string that containts the row and col of the error.
Method that helps ExC modules to check if the output should be verbosed or not.
The modules that call this method are CodeGenerator, CodeOptimizer and CodeConnector.
Specs
code assembly code to be printed.
module_str string that identifies the calling method. To use this correctly, use the module Common.StringElements and call the appropiate method for the desired module.
verbose Boolean indicating if the output should be shown.
Specs
label String with the element name.
element Element to print.
inspect Boolean indicating if something is going to be printed or not.