Vala.SourceFile – libvala-0.56 Reference Manual
Packages
libvala-0.56
Vala
SourceFile
content
context
current_using_directives
file_type
filename
from_commandline
gir_ambiguous
gir_namespace
gir_version
installed_version
package_name
relative_filename
used
SourceFile
accept
accept_children
add_comment
add_node
add_using_directive
check
get_cinclude_filename
get_comments
get_csource_filename
get_mapped_contents
get_mapped_length
get_nodes
get_relative_filename
get_source_line
remove_node
SourceFile
Object Hierarchy:
Description:
public
class
SourceFile
Namespace:
Vala
Package:
libvala-0.56
Content:
Properties:
public
string
?
content
{
get
;
set
; }
public
unowned
CodeContext
context
{
get
;
set
; }
public
List
<
UsingDirective
>
current_using_directives
{
get
;
set
; }
public
SourceFileType
file_type
{
get
;
set
; }
public
string
filename
{
get
; }
public
bool
from_commandline
{
get
;
set
; }
public
bool
gir_ambiguous
{
get
;
set
; }
public
string
gir_namespace
{
get
;
set
; }
public
string
gir_version
{
get
;
set
; }
public
string
?
installed_version
{
get
;
set
; }
public
string
?
package_name
{
get
;
set
; }
public
string
?
relative_filename
{
set
; }
public
bool
used
{
get
;
set
; }
Creation methods:
public
SourceFile
(
CodeContext
context,
SourceFileType
type,
string
filename,
string
? content =
null
,
bool
cmdline =
false
)
Methods:
public
void
accept
(
CodeVisitor
visitor)
public
void
accept_children
(
CodeVisitor
visitor)
public
void
add_comment
(
Comment
comment)
public
void
add_node
(
CodeNode
node)
public
void
add_using_directive
(
UsingDirective
ns)
public
bool
check
(
CodeContext
context)
public
string
get_cinclude_filename
()
public
unowned
List
<
Comment
>
get_comments
()
public
string
get_csource_filename
()
public
char
*
get_mapped_contents
()
public
size_t
get_mapped_length
()
public
unowned
List
<
CodeNode
>
get_nodes
()
public
string
get_relative_filename
()
public
string
?
get_source_line
(
int
lineno)
public
void
remove_node
(
CodeNode
node)