Vala.CCodeBlock – ccode Reference Manual
Packages
ccode
Vala
CCodeBlock
suppress_newline
CCodeBlock
add_statement
prepend_statement
write
_suppress_newline
statements
CCodeBlock
Object Hierarchy:
Vala.CCodeBlock
Vala.CCodeBlock
Vala.CCodeBlock
Vala.CCodeStatement
Vala.CCodeStatement
Vala.CCodeStatement->Vala.CCodeBlock
Vala.CCodeNode
Vala.CCodeNode
Vala.CCodeNode->Vala.CCodeStatement
Description:
public
class
CCodeBlock
:
CCodeStatement
Represents a C code block.
All known sub-classes:
CCodeSwitchStatement
Namespace:
Vala
Package:
ccode
Content:
Properties:
public
bool
suppress_newline
{
get
;
set
; }
Specifies whether a newline at the end of the block should be suppressed.
Creation methods:
public
CCodeBlock
()
Methods:
public
void
add_statement
(
CCodeNode
statement)
Append the specified statement to the list of statements.
public
void
prepend_statement
(
CCodeNode
statement)
Prepend the specified statement to the list of statements.
public
override
void
write
(
CCodeWriter
writer)
Fields:
private
bool
_suppress_newline
private
List
<
CCodeNode
>
statements
Inherited Members:
All known members inherited from class Vala.CCodeNode
_line
_modifiers
line
modifiers
write
write_combined
write_declaration