From 91e59fe3ebc132b138c98b00cb1a91b2b34f5d24 Mon Sep 17 00:00:00 2001 From: Umur Ozkul Date: Sun, 11 Sep 2022 22:44:53 +0200 Subject: [PATCH] rename to System.environment --- .../Reducer/Reducer_Peggy/Reducer_Peggy_ToExpression.res | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_ToExpression.res b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_ToExpression.res index 1c083b52..1db8366b 100644 --- a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_ToExpression.res +++ b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_ToExpression.res @@ -22,7 +22,7 @@ let rec fromNode = (node: Parse.node): expression => { let callIdentifier = nodeCallIdentifier["value"] // `callIdentifier ${callIdentifier}`->Js.log let callValue = switch callIdentifier { - | "withEnvironmentSampleCount" => "$$_withEnvironmentSampleCount_$$" + | "Environment.withSampleCount" => "$$_withEnvironmentSampleCount_$$" | callName => callName } ExpressionBuilder.eCall(callValue) @@ -33,7 +33,7 @@ let rec fromNode = (node: Parse.node): expression => { let identifier = nodeIdentifier["value"] // `caseIdentifier ${identifier}`->Js.log switch identifier { - | "environment" => "$$_environment_$$"->ExpressionBuilder.eFunction(list{}) + | "System.environment" => "$$_environment_$$"->ExpressionBuilder.eFunction(list{}) | symbol => symbol->ExpressionBuilder.eSymbol } }