/vqdr/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/vqdr/trunk

« back to all changes in this revision

Viewing changes to src/libvqdr/root_token.vala

  • Committer: Gustav Hartvigsson
  • Date: 2021-11-16 12:44:52 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20211116124452-g9245bvzwcyy9wk9
Added licencing information.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
  public class RootToken : Token {
4
4
    
5
5
    construct {
6
 
      this.priority = Prio.ASSIGNMENT;
 
6
      this.priority = 0;
7
7
      this.mandatory_num_child = 1;
8
8
      this.optional_num_child = 0;
9
9
    }
13
13
      this.set_child (1, root);
14
14
    }
15
15
    
16
 
    protected override void evaluate_self (Context instance)
17
 
                            throws GLib.Error {
 
16
    protected override void evaluate_self (Context instance) throws GLib.Error {
18
17
      Token? child = get_child (1);
19
18
      child.evaluate (instance);
20
19
      this.result_value = child.result_value;