Skip to content

Commit

Permalink
Run dotnet format
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulusParssinen committed Feb 1, 2024
1 parent d4326cb commit 5e74675
Show file tree
Hide file tree
Showing 212 changed files with 7,431 additions and 7,639 deletions.
379 changes: 189 additions & 190 deletions Flazzy/ABC/ABCFile.cs

Large diffs are not rendered by default.

23 changes: 11 additions & 12 deletions Flazzy/ABC/AS3Item.cs
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
namespace Flazzy.ABC
namespace Flazzy.ABC;

public abstract class AS3Item : FlashItem
{
public abstract class AS3Item : FlashItem
{
public ABCFile ABC { get; }
public ABCFile ABC { get; }

public AS3Item(ABCFile abc)
{
ABC = abc;
}
public AS3Item(ABCFile abc)
{
ABC = abc;
}

public virtual string ToAS3()
{
throw new NotSupportedException();
}
public virtual string ToAS3()
{
throw new NotSupportedException();
}
}
59 changes: 29 additions & 30 deletions Flazzy/ABC/ASClass.cs
Original file line number Diff line number Diff line change
@@ -1,40 +1,39 @@
using Flazzy.IO;

namespace Flazzy.ABC
namespace Flazzy.ABC;

public class ASClass : ASContainer
{
public class ASClass : ASContainer
{
internal int InstanceIndex { get; set; }
public ASInstance Instance => ABC.Instances[InstanceIndex];
internal int InstanceIndex { get; set; }
public ASInstance Instance => ABC.Instances[InstanceIndex];

public int ConstructorIndex { get; set; }
public ASMethod Constructor => ABC.Methods[ConstructorIndex];
public int ConstructorIndex { get; set; }
public ASMethod Constructor => ABC.Methods[ConstructorIndex];

public override bool IsStatic => true;
public override ASMultiname QName => Instance.QName;
protected override string DebuggerDisplay => ToAS3();
public override bool IsStatic => true;
public override ASMultiname QName => Instance.QName;
protected override string DebuggerDisplay => ToAS3();

public ASClass(ABCFile abc)
: base(abc)
{ }
public ASClass(ABCFile abc, FlashReader input)
: base(abc)
{
ConstructorIndex = input.ReadInt30();
Constructor.IsConstructor = true;
Constructor.Container = this;
public ASClass(ABCFile abc)
: base(abc)
{ }
public ASClass(ABCFile abc, FlashReader input)
: base(abc)
{
ConstructorIndex = input.ReadInt30();
Constructor.IsConstructor = true;
Constructor.Container = this;

PopulateTraits(input);
}
PopulateTraits(input);
}

public override string ToAS3()
{
return Instance.ToAS3();
}
public override void WriteTo(FlashWriter output)
{
output.WriteInt30(ConstructorIndex);
base.WriteTo(output);
}
public override string ToAS3()
{
return Instance.ToAS3();
}
public override void WriteTo(FlashWriter output)
{
output.WriteInt30(ConstructorIndex);
base.WriteTo(output);
}
}
Loading

0 comments on commit 5e74675

Please sign in to comment.