/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/function/function_token.vala

  • Committer: Gustav Hartvigsson
  • Date: 2020-06-07 18:48:24 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20200607184824-jf14f7a1b1di2i2q
* Initial code - far from done

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
using Gee;
2
2
 
3
3
using VQDR.Expression;
4
 
using VQDR.Common;
5
4
 
6
5
namespace VQDR.Expression {
7
6
  public abstract class FunctionToken : Token {
72
71
    
73
72
    construct {
74
73
      _allowed_functions = new Gee.HashMap<string, Type?> ();
75
 
      this.priority = Prio.FUNCTION;
 
74
      this.priority = PRIO_FUNCTION;
76
75
    }
77
76
    
78
77
    /**
123
122
      return ret_val;
124
123
    }
125
124
    
126
 
    protected FastNumber get_optional_child_raw_result (Context instance,
 
125
    protected long get_optional_child_raw_result (Context instance,
127
126
                                                  int index,
128
127
                                                  long default_result)
129
128
                                                  throws GLib.Error {
133
132
         tmp_roll.evaluate (instance);
134
133
         return tmp_roll.result_value;
135
134
     } else {
136
 
       return FastNumber.raw (default_result);
 
135
       return default_result;
137
136
     }
138
137
    }
139
138