Skip to content

Commit

Permalink
Work in progress
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoblon committed Aug 31, 2020
1 parent dcf0a66 commit 2fed56e
Show file tree
Hide file tree
Showing 3 changed files with 127 additions and 163 deletions.
4 changes: 2 additions & 2 deletions rudder-lang/src/generator/dsc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ impl Generator for DSC {
let mut function = Function::agent(fn_name.clone())
.parameters(formatted_parameters.clone())
// Standard variables for all techniques
.call_group(vec![
.scope(vec![
Call::variable("$LocalClasses", "New-ClassContext"),
Call::variable("$ResourcesDir", "$PSScriptRoot + \"\\resources\""),
]);
Expand All @@ -378,7 +378,7 @@ impl Generator for DSC {
.iter()
.flat_map(|statement| self.format_statement(gc, statement, "any".to_string()))
{
function.add_call_group(methods);
function.push_scope(methods);
}

let extract = |name: &str| {
Expand Down
Loading

0 comments on commit 2fed56e

Please sign in to comment.