File tree Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Expand file tree Collapse file tree 1 file changed +0
-35
lines changed Original file line number Diff line number Diff line change @@ -229,41 +229,6 @@ function generate_mainbody(expr::Expr, modelinfo)
229
229
return Expr (expr. head, map (x -> generate_mainbody (x, modelinfo), expr. args)... )
230
230
end
231
231
232
- """
233
- replace_tilde!(model_info)
234
-
235
- Replace `~` and `.~` expressions with observation or assumption expressions, updating `model_info`.
236
- """
237
- function replace_tilde! (model_info)
238
- # Apply the `@.` macro first.
239
- expr = model_info[:main_body ]
240
- dottedexpr = MacroTools. postwalk (apply_dotted, expr)
241
-
242
- # Check for tilde operators.
243
- tildeexpr = MacroTools. postwalk (dottedexpr) do x
244
- # Check dot tilde first.
245
- dotargs = getargs_dottilde (x)
246
- if dotargs != = nothing
247
- L, R = dotargs
248
- return Base. remove_linenums! (generate_dot_tilde (L, R, model_info))
249
- end
250
-
251
- # Check tilde.
252
- args = getargs_tilde (x)
253
- if args != = nothing
254
- L, R = args
255
- return Base. remove_linenums! (generate_tilde (L, R, model_info))
256
- end
257
-
258
- return x
259
- end
260
-
261
- # Update the function body.
262
- model_info[:main_body ] = tildeexpr
263
-
264
- return model_info
265
- end
266
-
267
232
# """ Unbreak code highlighting in Emacs julia-mode
268
233
269
234
You can’t perform that action at this time.
0 commit comments