Skip to content

Commit

Permalink
Run formatter on LanguageUpgrader.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
desplesda committed Jan 14, 2021
1 parent 77fbc51 commit db63bf2
Showing 1 changed file with 18 additions and 13 deletions.
31 changes: 18 additions & 13 deletions YarnSpinner.Compiler/Upgrader/LanguageUpgrader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
namespace Yarn.Compiler.Upgrader
{

public struct UpgradeJob {
public struct UpgradeJob
{
public List<Yarn.Compiler.CompilationJob.File> Files;

public UpgradeType UpgradeType;
Expand All @@ -20,11 +21,12 @@ public UpgradeJob(UpgradeType upgradeType, IEnumerable<CompilationJob.File> file
}
}

public struct UpgradeResult {
public struct UpgradeResult
{
public List<OutputFile> Files;
internal static UpgradeResult Merge(UpgradeResult a, UpgradeResult b) {

internal static UpgradeResult Merge(UpgradeResult a, UpgradeResult b)
{
var filePairs = a.Files
.Join(
b.Files,
Expand All @@ -39,12 +41,14 @@ internal static UpgradeResult Merge(UpgradeResult a, UpgradeResult b) {

var allFiles = onlyResultA.Concat(onlyResultB).Concat(mergedFiles);

return new UpgradeResult() {
Files = allFiles.ToList()
return new UpgradeResult()
{
Files = allFiles.ToList(),
};
}

public struct OutputFile {
public struct OutputFile
{
public string Path;
public IEnumerable<TextReplacement> Replacements;
public string OriginalSource;
Expand All @@ -59,7 +63,8 @@ public struct OutputFile {
/// </summary>
public bool IsNewFile;

public struct Annotation {
public struct Annotation
{
public Type AnnotationType;

public string Description;
Expand All @@ -71,15 +76,14 @@ public Annotation(Type annotationType, string description)
this.Description = description;
}

public enum Type {
public enum Type
{
Information,
Warning,
Error
}
}



internal OutputFile(
string path,
IEnumerable<TextReplacement> replacements,
Expand Down Expand Up @@ -108,7 +112,8 @@ internal OutputFile(
}

/// <summary>
/// Merges two <see cref="OutputFile"/> objects, producing a merged result.
/// Merges two <see cref="OutputFile"/> objects, producing a
/// merged result.
/// </summary>
/// <param name="a">The first file.</param>
/// <param name="b">The second file.</param>
Expand Down

0 comments on commit db63bf2

Please sign in to comment.