1 #ifndef STAN_LANG_AST_FUN_PRINT_VAR_ORIGIN_DEF_HPP 2 #define STAN_LANG_AST_FUN_PRINT_VAR_ORIGIN_DEF_HPP 15 o <<
"transformed data";
19 o <<
"transformed parameter";
21 o <<
"generated quantities";
25 o <<
"function argument";
27 o <<
"function argument '_lp' suffixed";
29 o <<
"function argument '_rng' suffixed";
31 o <<
"void function argument";
33 o <<
"void function argument '_lp' suffixed";
35 o <<
"void function argument '_rng' suffixed";
37 o <<
"UNKNOWN ORIGIN=" << vo;
const int function_argument_origin
The variable arose as a function argument to a non-void function that does not end in _lp or _rng...
const int derived_origin
The origin of the variable is ???.
const int parameter_origin
The origin of the variable is the parameter block.
const int function_argument_origin_rng
The variable arose as an argument to a non-void function with the _rng suffix.
Probability, optimization and sampling library.
const int transformed_parameter_origin
The origin of the variable is the transformed parameter block.
const int function_argument_origin_lp
The variable arose as an argument to a non-void function with the _lp suffix.
void print_var_origin(std::ostream &o, const var_origin &vo)
Write a user-readable version of the specified variable to origin to the specified output stream...
const int void_function_argument_origin_rng
The variable arose as an argument to a function returning void with an _rng suffix.
const int model_name_origin
Origin of variable is the name of the model.
int var_origin
The type of a variable indicating where a variable was declared.
const int void_function_argument_origin
The variable arose as an argument to a function returning void that does not have the _lp or _rng suf...
const int data_origin
The origin of the variable is the data block.
const int void_function_argument_origin_lp
The variable arose as an argument to a function returning void with _lp suffix.
const int local_origin
The origin of the variable is as a local variable.
const int transformed_data_origin
The origin of the variable is the transformed data block.