Correctly state ownership in documentation since those were never a copy.
/**
* Get the sizes for all dimensions ascending from left to right.
*/
- public List<Expression> get_sizes () {
+ public unowned List<Expression> get_sizes () {
return sizes;
}
nodes.add (node);
}
- public List<CodeNode> get_nodes () {
+ public unowned List<CodeNode> get_nodes () {
return nodes;
}
}
}
- public List<weak BasicBlock> get_predecessors () {
+ public unowned List<weak BasicBlock> get_predecessors () {
return predecessors;
}
- public List<weak BasicBlock> get_successors () {
+ public unowned List<weak BasicBlock> get_successors () {
return successors;
}
block.parent = this;
}
- public List<weak BasicBlock> get_children () {
+ public unowned List<weak BasicBlock> get_children () {
return children;
}
df.add (block);
}
- public Set<weak BasicBlock> get_dominator_frontier () {
+ public unowned Set<weak BasicBlock> get_dominator_frontier () {
return df;
}
phi_functions.add (phi);
}
- public Set<PhiFunction> get_phi_functions () {
+ public unowned Set<PhiFunction> get_phi_functions () {
return phi_functions;
}
}
}
/**
- * Returns a copy of the list of local variables.
+ * Returns the list of local variables.
*
* @return variable declarator list
*/
- public List<LocalVariable> get_local_variables () {
+ public unowned List<LocalVariable> get_local_variables () {
return local_variables;
}
*
* @return constants list
*/
- public List<Constant> get_local_constants () {
+ public unowned List<Constant> get_local_constants () {
return local_constants;
}
/**
* Returns the parameter list.
*/
- public abstract List<Parameter> get_parameters ();
+ public abstract unowned List<Parameter> get_parameters ();
}
}
/**
- * Returns a copy of the base type list.
+ * Returns the base type list.
*
* @return list of base types
*/
- public List<DataType> get_base_types () {
+ public unowned List<DataType> get_base_types () {
return base_types;
}
}
/**
- * Returns a copy of the list of source files.
+ * Returns the list of source files.
*
* @return list of source files
*/
- public List<SourceFile> get_source_files () {
+ public unowned List<SourceFile> get_source_files () {
return source_files;
}
/**
- * Returns a copy of the list of C source files.
+ * Returns the list of C source files.
*
* @return list of C source files
*/
- public List<string> get_c_source_files () {
+ public unowned List<string> get_c_source_files () {
return c_source_files;
}
}
/**
- * Returns a copy of the list of used packages.
+ * Returns the list of used packages.
*
* @return list of used packages
*/
- public List<string> get_packages () {
+ public unowned List<string> get_packages () {
return packages;
}
}
/**
- * Returns a copy of the list of generic type arguments.
+ * Returns the list of generic type arguments.
*
* @return type argument list
*/
- public List<DataType> get_type_arguments () {
+ public unowned List<DataType> get_type_arguments () {
if (type_argument_list != null) {
return type_argument_list;
}
}
/**
- * Returns copy of the list of invocation parameters.
+ * Returns the list of invocation parameters.
*
* @return parameter list
*/
- public virtual List<Parameter>? get_parameters () {
+ public virtual unowned List<Parameter>? get_parameters () {
return null;
}
scope.add (p.name, p);
}
- public List<TypeParameter> get_type_parameters () {
+ public unowned List<TypeParameter> get_type_parameters () {
return type_parameters;
}
}
/**
- * Return copy of parameter list.
+ * Return the parameter list.
*
* @return parameter list
*/
- public List<Parameter> get_parameters () {
+ public unowned List<Parameter> get_parameters () {
return parameters;
}
return delegate_symbol.return_type;
}
- public override List<Parameter>? get_parameters () {
+ public override unowned List<Parameter>? get_parameters () {
return delegate_symbol.get_parameters ();
}
index.parent_node = this;
}
- public List<Expression> get_indices () {
+ public unowned List<Expression> get_indices () {
return indices;
}
}
/**
- * Returns a copy of the list of enum values.
+ * Returns the list of enum values.
*
* @return list of enum values
*/
- public List<EnumValue> get_values () {
+ public unowned List<EnumValue> get_values () {
return values;
}
/**
- * Returns a copy of the list of methods.
+ * Returns the list of methods.
*
* @return list of methods
*/
- public List<Method> get_methods () {
+ public unowned List<Method> get_methods () {
return methods;
}
/**
- * Returns a copy of the list of constants.
+ * Returns the list of constants.
*
* @return list of constants
*/
- public List<Constant> get_constants () {
+ public unowned List<Constant> get_constants () {
return constants;
}
}
/**
- * Returns a copy of the list of error codes.
+ * Returns the list of error codes.
*
* @return list of error codes
*/
- public List<ErrorCode> get_codes () {
+ public unowned List<ErrorCode> get_codes () {
return codes;
}
/**
- * Returns a copy of the list of methods.
+ * Returns the list of methods.
*
* @return list of methods
*/
- public List<Method> get_methods () {
+ public unowned List<Method> get_methods () {
return methods;
}
}
/**
- * Returns a copy of the list of initializers.
+ * Returns the list of initializers.
*
* @return initializer list
*/
- public List<Expression> get_initializer () {
+ public unowned List<Expression> get_initializer () {
return initializer;
}
}
/**
- * Returns a copy of the iterator.
+ * Returns the iterator.
*
* @return iterator
*/
- public List<Expression> get_iterator () {
+ public unowned List<Expression> get_iterator () {
return iterator;
}
}
/**
- * Returns a copy of the expression
+ * Returns the initalizer expression list
*
* @return expression list
*/
- public List<Expression> get_initializers () {
+ public unowned List<Expression> get_initializers () {
return initializers;
}
}
/**
- * Returns a copy of the base type list.
+ * Returns the base type list.
*
* @return list of base types
*/
- public List<DataType> get_prerequisites () {
+ public unowned List<DataType> get_prerequisites () {
return prerequisites;
}
}
/**
- * Returns copy of parameter list.
+ * Returns the parameter list.
*
* @return parameter list
*/
- public List<Parameter> get_parameters () {
+ public unowned List<Parameter> get_parameters () {
return parameters;
}
}
/**
- * Returns a copy of the list of generic type arguments.
+ * Returns the list of generic type arguments.
*
* @return type argument list
*/
- public List<DataType> get_type_arguments () {
+ public unowned List<DataType> get_type_arguments () {
return type_argument_list;
}
scope.add (param.name, param);
}
- public List<Parameter> get_parameters () {
+ public unowned List<Parameter> get_parameters () {
return parameters;
}
}
/**
- * Returns a copy of the type parameter list.
+ * Returns the type parameter list.
*
* @return list of type parameters
*/
- public List<TypeParameter> get_type_parameters () {
+ public unowned List<TypeParameter> get_type_parameters () {
if (type_parameters != null) {
return type_parameters;
}
}
/**
- * Returns a copy of the list of preconditions of this method.
+ * Returns the list of preconditions of this method.
*
* @return list of preconditions
*/
- public List<Expression> get_preconditions () {
+ public unowned List<Expression> get_preconditions () {
if (preconditions != null) {
return preconditions;
}
}
/**
- * Returns a copy of the list of postconditions of this method.
+ * Returns the list of postconditions of this method.
*
* @return list of postconditions
*/
- public List<Expression> get_postconditions () {
+ public unowned List<Expression> get_postconditions () {
if (postconditions != null) {
return postconditions;
}
}
/**
- * Returns a copy of the argument list.
+ * Returns the argument list.
*
* @return argument list
*/
- public List<Expression> get_argument_list () {
+ public unowned List<Expression> get_argument_list () {
return argument_list;
}
return method_symbol.return_type;
}
- public override List<Parameter>? get_parameters () {
+ public override unowned List<Parameter>? get_parameters () {
return method_symbol.get_parameters ();
}
}
/**
- * Returns a copy of the list of namespaces.
+ * Returns the list of namespaces.
*
* @return comment list
*/
- public List<Comment> get_comments () {
+ public unowned List<Comment> get_comments () {
return comments;
}
}
/**
- * Returns a copy of the list of namespaces.
+ * Returns the list of namespaces.
*
* @return namespace list
*/
- public List<Namespace> get_namespaces () {
+ public unowned List<Namespace> get_namespaces () {
return namespaces;
}
}
/**
- * Returns a copy of the list of structs.
+ * Returns the list of structs.
*
* @return struct list
*/
- public List<Struct> get_structs () {
+ public unowned List<Struct> get_structs () {
return structs;
}
/**
- * Returns a copy of the list of classes.
+ * Returns the list of classes.
*
* @return class list
*/
- public List<Class> get_classes () {
+ public unowned List<Class> get_classes () {
return classes;
}
/**
- * Returns a copy of the list of interfaces.
+ * Returns the list of interfaces.
*
* @return interface list
*/
- public List<Interface> get_interfaces () {
+ public unowned List<Interface> get_interfaces () {
return interfaces;
}
/**
- * Returns a copy of the list of enums.
+ * Returns the list of enums.
*
* @return enum list
*/
- public List<Enum> get_enums () {
+ public unowned List<Enum> get_enums () {
return enums;
}
/**
- * Returns a copy of the list of error domains.
+ * Returns the list of error domains.
*
* @return error domain list
*/
- public List<ErrorDomain> get_error_domains () {
+ public unowned List<ErrorDomain> get_error_domains () {
return error_domains;
}
/**
- * Returns a copy of the list of fields.
+ * Returns the list of fields.
*
* @return field list
*/
- public List<Field> get_fields () {
+ public unowned List<Field> get_fields () {
return fields;
}
/**
- * Returns a copy of the list of constants.
+ * Returns the list of constants.
*
* @return constant list
*/
- public List<Constant> get_constants () {
+ public unowned List<Constant> get_constants () {
return constants;
}
/**
- * Returns a copy of the list of delegates.
+ * Returns the list of delegates.
*
* @return delegate list
*/
- public List<Delegate> get_delegates () {
+ public unowned List<Delegate> get_delegates () {
return delegates;
}
/**
- * Returns a copy of the list of methods.
+ * Returns the list of methods.
*
* @return method list
*/
- public List<Method> get_methods () {
+ public unowned List<Method> get_methods () {
return methods;
}
}
/**
- * Returns a copy of the argument list.
+ * Returns the argument list.
*
* @return argument list
*/
- public List<Expression> get_argument_list () {
+ public unowned List<Expression> get_argument_list () {
return argument_list;
}
*
* @return member initializer list
*/
- public List<MemberInitializer> get_object_initializer () {
+ public unowned List<MemberInitializer> get_object_initializer () {
return object_initializer;
}
}
}
- public override List<Parameter>? get_parameters () {
+ public override unowned List<Parameter>? get_parameters () {
var cl = type_symbol as Class;
if (cl != null && cl.default_construction_method != null) {
return cl.default_construction_method.get_parameters ();
*
* @return list of members
*/
- public List<Symbol> get_members () {
+ public unowned List<Symbol> get_members () {
return members;
}
*
* @return list of fields
*/
- public List<Field> get_fields () {
+ public unowned List<Field> get_fields () {
return fields;
}
*
* @return list of methods
*/
- public List<Method> get_methods () {
+ public unowned List<Method> get_methods () {
return methods;
}
*
* @return list of properties
*/
- public List<Property> get_properties () {
+ public unowned List<Property> get_properties () {
return properties;
}
*
* @return list of signals
*/
- public List<Signal> get_signals () {
+ public unowned List<Signal> get_signals () {
return signals;
}
*
* @return list of classes
*/
- public List<Class> get_classes () {
+ public unowned List<Class> get_classes () {
return classes;
}
*
* @return list of structs
*/
- public List<Struct> get_structs () {
+ public unowned List<Struct> get_structs () {
return structs;
}
*
* @return list of enums
*/
- public List<Enum> get_enums () {
+ public unowned List<Enum> get_enums () {
return enums;
}
*
* @return list of delegates
*/
- public List<Delegate> get_delegates () {
+ public unowned List<Delegate> get_delegates () {
return delegates;
}
*
* @return list of constants
*/
- public List<Constant> get_constants () {
+ public unowned List<Constant> get_constants () {
return constants;
}
}
/**
- * Returns a copy of the type parameter list.
+ * Returns the type parameter list.
*
* @return list of type parameters
*/
- public List<TypeParameter> get_type_parameters () {
+ public unowned List<TypeParameter> get_type_parameters () {
return type_parameters;
}
return false;
}
- public Map<string,Symbol> get_symbol_table () {
+ public unowned Map<string,Symbol> get_symbol_table () {
return symbol_table;
}
}
scope.add (param.name, param);
}
- public List<Parameter> get_parameters () {
+ public unowned List<Parameter> get_parameters () {
return parameters;
}
return signal_symbol.return_type;
}
- public override List<Parameter>? get_parameters () {
+ public override unowned List<Parameter>? get_parameters () {
return signal_symbol.get_parameters ();
}
}
/**
- * Returns a copy of the list of header comments.
+ * Returns the list of header comments.
*
* @return list of comments
*/
- public List<Comment> get_comments () {
+ public unowned List<Comment> get_comments () {
return comments;
}
}
/**
- * Returns a copy of the list of code nodes.
+ * Returns the list of code nodes.
*
* @return code node list
*/
- public List<CodeNode> get_nodes () {
+ public unowned List<CodeNode> get_nodes () {
return nodes;
}
}
/**
- * Returns a copy of the type parameter list.
+ * Returns the type parameter list.
*
* @return list of type parameters
*/
- public List<TypeParameter> get_type_parameters () {
+ public unowned List<TypeParameter> get_type_parameters () {
return type_parameters;
}
}
/**
- * Returns a copy of the list of fields.
+ * Returns the list of fields.
*
* @return list of fields
*/
- public List<Field> get_fields () {
+ public unowned List<Field> get_fields () {
return fields;
}
/**
- * Returns a copy of the list of constants.
+ * Returns the list of constants.
*
* @return list of constants
*/
- public List<Constant> get_constants () {
+ public unowned List<Constant> get_constants () {
return constants;
}
}
/**
- * Returns a copy of the list of methods.
+ * Returns the list of methods.
*
* @return list of methods
*/
- public List<Method> get_methods () {
+ public unowned List<Method> get_methods () {
return methods;
}
}
/**
- * Returns a copy of the list of properties.
+ * Returns the list of properties.
*
* @return list of properties
*/
- public List<Property> get_properties () {
+ public unowned List<Property> get_properties () {
return properties;
}
}
}
- public override List<Parameter>? get_parameters () {
+ public override unowned List<Parameter>? get_parameters () {
var st = type_symbol as Struct;
if (st != null && st.default_construction_method != null) {
return st.default_construction_method.get_parameters ();
}
/**
- * Returns a copy of the list of switch labels.
+ * Returns the list of switch labels.
*
* @return switch label list
*/
- public List<SwitchLabel> get_labels () {
+ public unowned List<SwitchLabel> get_labels () {
return labels;
}
}
/**
- * Returns a copy of the list of switch sections.
+ * Returns the list of switch sections.
*
* @return section list
*/
- public List<SwitchSection> get_sections () {
+ public unowned List<SwitchSection> get_sections () {
return sections;
}
expr.parent_node = this;
}
- public List<Expression> get_expressions () {
+ public unowned List<Expression> get_expressions () {
return expression_list;
}
}
/**
- * Returns a copy of the list of catch clauses.
+ * Returns the list of catch clauses.
*
* @return list of catch clauses
*/
- public List<CatchClause> get_catch_clauses () {
+ public unowned List<CatchClause> get_catch_clauses () {
return catch_clauses;
}
expr.parent_node = this;
}
- public List<Expression> get_expressions () {
+ public unowned List<Expression> get_expressions () {
return expression_list;
}