Skip to content

Commit 1d1fe56

Browse files
committed
Fix bug in Transformer.cs
1 parent 8125298 commit 1d1fe56

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/PatchManager.SassyPatching/Execution/Universe.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,7 +258,7 @@ private void LoadSinglePatch(string modId, FileInfo patch, Transformer tokenTran
258258
}
259259
catch (Exception e)
260260
{
261-
_errorLogger($"Could not run patch: {modId}:{patch.Name} due to: {e.Message}");
261+
_errorLogger($"Could not run patch: {modId}:{patch.Name} due to: {e}");
262262
}
263263
}
264264

src/PatchManager.SassyPatching/Transformer.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -806,6 +806,12 @@ public override Node VisitImplicit_stage_def(sassy_parser.Implicit_stage_defCont
806806
context.GetCoordinate(), context.stage.GetStringValue(),
807807
context.stage_attribute().Select(Visit).Cast<StageDefinitionAttribute>().ToList());
808808

809+
public override Node VisitStage_value_before(sassy_parser.Stage_value_beforeContext context) =>
810+
new StageDefinitionAttribute(context.GetCoordinate(), context.stage.GetStringValue(), false);
811+
812+
public override Node VisitStage_value_after(sassy_parser.Stage_value_afterContext context) =>
813+
new StageDefinitionAttribute(context.GetCoordinate(), context.stage.GetStringValue(), true);
814+
809815
/// <inheritdoc />
810816
public override Node VisitConfig_creation(sassy_parser.Config_creationContext context) => new ConfigCreation(
811817
context.GetCoordinate(), context.label.GetStringValue(), context.config_name.GetStringValue(),

0 commit comments

Comments
 (0)