private List<DataType> base_types = new ArrayList<DataType> ();
- private List<Constant> constants = new ArrayList<Constant> ();
-
/**
* Specifies the default construction method.
*/
return base_types;
}
- /**
- * Adds the specified constant as a member to this class.
- *
- * @param c a constant
- */
- public override void add_constant (Constant c) {
- constants.add (c);
- scope.add (c.name, c);
- }
-
/**
* Adds the specified field as a member to this class.
*
}
}
- /**
- * Returns a copy of the list of constants.
- *
- * @return list of constants
- */
- public List<Constant> get_constants () {
- return constants;
- }
-
/**
* Adds the specified method as a member to this class.
*
f.accept (visitor);
}
- foreach (Constant c in constants) {
+ foreach (Constant c in get_constants ()) {
c.accept (visitor);
}
f.check (context);
}
- foreach (Constant c in constants) {
+ foreach (Constant c in get_constants ()) {
c.check (context);
}
public class Vala.Interface : ObjectTypeSymbol {
private List<DataType> prerequisites = new ArrayList<DataType> ();
- private List<Constant> constants = new ArrayList<Constant> ();
private List<Symbol> virtuals = new ArrayList<Symbol> ();
/**
base.add_method (m);
}
- /**
- * Adds the specified constant as a member to this interface.
- *
- * @param c a constant
- */
- public override void add_constant (Constant c) {
- constants.add (c);
- scope.add (c.name, c);
- }
-
- /**
- * Returns a copy of the list of constants.
- *
- * @return list of constants
- */
- public List<Constant> get_constants () {
- return constants;
- }
-
/**
* Adds the specified property as a member to this interface.
*
f.accept (visitor);
}
- foreach (Constant c in constants) {
+ foreach (Constant c in get_constants ()) {
c.accept (visitor);
}
f.check (context);
}
- foreach (Constant c in constants) {
+ foreach (Constant c in get_constants ()) {
c.check (context);
}
private List<Enum> enums = new ArrayList<Enum> ();
private List<Delegate> delegates = new ArrayList<Delegate> ();
+ private List<Constant> constants = new ArrayList<Constant> ();
+
public ObjectTypeSymbol (string name, SourceReference? source_reference = null, Comment? comment = null) {
base (name, source_reference, comment);
}
scope.add (d.name, d);
}
+ /**
+ * Adds the specified constant as a member to this interface.
+ *
+ * @param c a constant
+ */
+ public override void add_constant (Constant c) {
+ constants.add (c);
+ scope.add (c.name, c);
+ }
+
+ /**
+ * Returns the list of constants.
+ *
+ * @return list of constants
+ */
+ public List<Constant> get_constants () {
+ return constants;
+ }
+
/**
* Appends the specified parameter to the list of type parameters.
*