qol: formatting

This commit is contained in:
Gary Sharp
2025-07-20 13:47:56 +10:00
parent 49da389c2c
commit 5792771ea1
158 changed files with 693 additions and 679 deletions
@@ -20,9 +20,8 @@ namespace Disco.Services.Expressions
{
if (expressionParseException == null)
return null;
else
if (evaluateParseException == null)
evaluateParseException = EvaluateExpressionParseException.FromRecognitionException(expressionParseException, Source);
else if (evaluateParseException == null)
evaluateParseException = EvaluateExpressionParseException.FromRecognitionException(expressionParseException, Source);
return evaluateParseException;
}
}
@@ -24,10 +24,10 @@ namespace Disco.Services.Expressions.Extensions.ImageResultImplementations
public override MemoryStream GetImage(out int width, out int height)
{
var image = Image;
width = image.Width;
height = image.Height;
return OutputBitmapImage(image);
}
}
@@ -53,7 +53,8 @@ namespace Disco.Services.Expressions.Extensions.ImageResultImplementations
{
maxWidth = images.Sum(i => i.Width);
maxHeight = images.Max(i => i.Height);
}else if (MontageVerticalLayout)
}
else if (MontageVerticalLayout)
{
maxWidth = images.Max(i => i.Width);
maxHeight = images.Sum(i => i.Height);
@@ -2,14 +2,14 @@ using System.Collections;
namespace Disco.Services.Expressions
{
public interface IExpressionPart
{
public interface IExpressionPart
{
string RawSource { get; set; }
string Source { get; set; }
string Source { get; set; }
bool ErrorsAllowed { get; set; }
bool ParseError { get; }
string ParseErrorMessage { get; }
bool IsDynamic { get; set; }
object Evaluate(object ExpressionContext, IDictionary Variables);
}
bool IsDynamic { get; set; }
object Evaluate(object ExpressionContext, IDictionary Variables);
}
}