2007-07-17 Jürg Billeter <j@bitron.ch>
+ * vala/valaarraylengthfield.vala, vala/valaarrayresizemethod.vala,
+ vala/valacodecontext.vala, vala/valasemanticanalyzer.vala,
+ vala/valasymbolbuilder.vala, vala/valasymbolresolver.vala,
+ gobject/valacodegenerator.vala: convert the CodeContext.get_root
+ method to a property
+
+2007-07-17 Jürg Billeter <j@bitron.ch>
+
* vala/parser.y, vala/valaattributeprocessor.vala,
vala/valacodecontext.vala, vala/valadatatype.vala,
vala/valainterfacewriter.vala, vala/valamemorymanager.vala,
context.find_header_cycles ();
- root_symbol = context.get_root ();
+ root_symbol = context.root;
bool_type = new TypeReference ();
bool_type.data_type = (DataType) root_symbol.lookup ("bool").node;
construct {
access = MemberAccessibility.PUBLIC;
- var root_symbol = source_reference.file.context.get_root ();
+ var root_symbol = source_reference.file.context.root;
type_reference.data_type = (DataType) root_symbol.lookup ("int").node;
}
set_cname ("g_renew");
- var root_symbol = source_reference.file.context.get_root ();
+ var root_symbol = source_reference.file.context.root;
var int_type = new TypeReference ();
int_type.data_type = (DataType) root_symbol.lookup ("int").node;
public Method module_init_method { get; set; }
List<SourceFile> source_files;
- private Symbol! root = new Symbol ();
+ private Symbol! _root = new Symbol ();
private Namespace global_namespace = new Namespace (null);
private List<Namespace> namespaces;
private List<string> packages;
/**
- * Returns the root symbol of the code tree.
+ * The root symbol of the code tree.
*
* @return root symbol
*/
- public Symbol! get_root () {
- return root;
+ public Symbol! root {
+ get { return _root; }
}
/**
* @param context a code context
*/
public void analyze (CodeContext! context) {
- root_symbol = context.get_root ();
+ root_symbol = context.root;
bool_type = new TypeReference ();
bool_type.data_type = (DataType) root_symbol.lookup ("bool").node;
* @param context a code context
*/
public void build (CodeContext! context) {
- root = context.get_root ();
+ root = context.root;
context.accept (this);
}
* @param context a code context
*/
public void resolve (CodeContext! context) {
- root_symbol = context.get_root ();
+ root_symbol = context.root;
current_scope = root_symbol;
// TODO: don't require GLib namespace in symbol resolver