Skip to content

Commit

Permalink
(#380) Tests: exclude compiler-generated attributes from the API files
Browse files Browse the repository at this point in the history
  • Loading branch information
ForNeVeR committed Oct 14, 2023
1 parent 3e59238 commit ef17701
Show file tree
Hide file tree
Showing 12 changed files with 180 additions and 346 deletions.
1 change: 1 addition & 0 deletions XamlMath.All.sln
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "api", "api", "{3F2FED19-93A
api\AvaloniaMath.net462.verified.cs = api\AvaloniaMath.net462.verified.cs
api\XamlMath.Shared.net462.verified.cs = api\XamlMath.Shared.net462.verified.cs
api\XamlMath.Shared.net6.0.verified.cs = api\XamlMath.Shared.net6.0.verified.cs
api\ExcludedAttributes.txt = api\ExcludedAttributes.txt
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tool.TTFMetrics", "src\Tool.TTFMetrics\Tool.TTFMetrics.csproj", "{A29B12C8-9AE6-4016-9AB8-702B67409C95}"
Expand Down
4 changes: 2 additions & 2 deletions api/AvaloniaMath.net462.verified.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ namespace AvaloniaMath.Parsers
{
public static partial class AvaloniaTeXFormulaParser
{
public static XamlMath.TexFormulaParser Instance { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } }
public static XamlMath.TexFormulaParser Instance { get { throw null; } }
}
}
namespace AvaloniaMath.Rendering
{
public sealed partial class AvaloniaBrushFactory : XamlMath.Rendering.IBrushFactory
{
internal AvaloniaBrushFactory() { }
public static AvaloniaMath.Rendering.AvaloniaBrushFactory Instance { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } }
public static AvaloniaMath.Rendering.AvaloniaBrushFactory Instance { get { throw null; } }
public XamlMath.Rendering.IBrush FromColor(XamlMath.Colors.RgbaColor color) { throw null; }
}
public static partial class AvaloniaExtensions
Expand Down
4 changes: 2 additions & 2 deletions api/AvaloniaMath.net6.0.verified.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ namespace AvaloniaMath.Parsers
{
public static partial class AvaloniaTeXFormulaParser
{
public static XamlMath.TexFormulaParser Instance { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } }
public static XamlMath.TexFormulaParser Instance { get { throw null; } }
}
}
namespace AvaloniaMath.Rendering
{
public sealed partial class AvaloniaBrushFactory : XamlMath.Rendering.IBrushFactory
{
internal AvaloniaBrushFactory() { }
public static AvaloniaMath.Rendering.AvaloniaBrushFactory Instance { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } }
public static AvaloniaMath.Rendering.AvaloniaBrushFactory Instance { get { throw null; } }
public XamlMath.Rendering.IBrush FromColor(XamlMath.Colors.RgbaColor color) { throw null; }
}
public static partial class AvaloniaExtensions
Expand Down
4 changes: 2 additions & 2 deletions api/AvaloniaMath.netstandard2.0.verified.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ namespace AvaloniaMath.Parsers
{
public static partial class AvaloniaTeXFormulaParser
{
public static XamlMath.TexFormulaParser Instance { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } }
public static XamlMath.TexFormulaParser Instance { get { throw null; } }
}
}
namespace AvaloniaMath.Rendering
{
public sealed partial class AvaloniaBrushFactory : XamlMath.Rendering.IBrushFactory
{
internal AvaloniaBrushFactory() { }
public static AvaloniaMath.Rendering.AvaloniaBrushFactory Instance { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } }
public static AvaloniaMath.Rendering.AvaloniaBrushFactory Instance { get { throw null; } }
public XamlMath.Rendering.IBrush FromColor(XamlMath.Colors.RgbaColor color) { throw null; }
}
public static partial class AvaloniaExtensions
Expand Down
4 changes: 4 additions & 0 deletions api/ExcludedAttributes.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
T:System.CodeDom.Compiler.GeneratedCodeAttribute
T:System.Diagnostics.DebuggerNonUserCodeAttribute
T:System.ComponentModel.EditorBrowsableAttribute
T:System.Runtime.CompilerServices.CompilerGeneratedAttribute
19 changes: 2 additions & 17 deletions api/WpfMath.net462.verified.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ public FormulaControl() { }
public int SelectionLength { get { throw null; } set { } }
public int SelectionStart { get { throw null; } set { } }
public string SystemTextFontName { get { throw null; } set { } }
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.11.0")]
[System.Diagnostics.DebuggerNonUserCodeAttribute]
public void InitializeComponent() { }
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.11.0")]
[System.ComponentModel.EditorBrowsableAttribute(1)]
[System.Diagnostics.DebuggerNonUserCodeAttribute]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { }
}
public partial class VisualContainerElement : System.Windows.FrameworkElement
Expand Down Expand Up @@ -75,7 +70,7 @@ namespace WpfMath.Parsers
{
public static partial class WpfTeXFormulaParser
{
public static XamlMath.TexFormulaParser Instance { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } }
public static XamlMath.TexFormulaParser Instance { get { throw null; } }
}
}
namespace WpfMath.Rendering
Expand All @@ -93,26 +88,16 @@ public void RenderTransformed(XamlMath.Boxes.Box box, System.Collections.Generic
public sealed partial class WpfBrush : XamlMath.Rendering.GenericBrush<System.Windows.Media.Brush>, System.IEquatable<WpfMath.Rendering.WpfBrush>
{
internal WpfBrush() { }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
protected override System.Type EqualityContract { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
protected override System.Type EqualityContract { get { throw null; } }
public override bool Equals(object? obj) { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public bool Equals(WpfMath.Rendering.WpfBrush? other) { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public sealed override bool Equals(XamlMath.Rendering.GenericBrush<System.Windows.Media.Brush>? other) { throw null; }
public static WpfMath.Rendering.WpfBrush FromBrush(System.Windows.Media.Brush value) { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public override int GetHashCode() { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static bool operator ==(WpfMath.Rendering.WpfBrush? left, WpfMath.Rendering.WpfBrush? right) { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static bool operator !=(WpfMath.Rendering.WpfBrush? left, WpfMath.Rendering.WpfBrush? right) { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
protected override bool PrintMembers(System.Text.StringBuilder builder) { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public override string ToString() { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public override XamlMath.Rendering.GenericBrush<System.Windows.Media.Brush> <Clone>$() { throw null; }
}
public sealed partial class WpfBrushFactory : XamlMath.Rendering.IBrushFactory
Expand Down
19 changes: 2 additions & 17 deletions api/WpfMath.net6.0.verified.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,7 @@ public FormulaControl() { }
public int SelectionLength { get { throw null; } set { } }
public int SelectionStart { get { throw null; } set { } }
public string SystemTextFontName { get { throw null; } set { } }
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.11.0")]
[System.Diagnostics.DebuggerNonUserCodeAttribute]
public void InitializeComponent() { }
[System.CodeDom.Compiler.GeneratedCodeAttribute("PresentationBuildTasks", "7.0.11.0")]
[System.ComponentModel.EditorBrowsableAttribute(1)]
[System.Diagnostics.DebuggerNonUserCodeAttribute]
void System.Windows.Markup.IComponentConnector.Connect(int connectionId, object target) { }
}
public partial class VisualContainerElement : System.Windows.FrameworkElement
Expand Down Expand Up @@ -75,7 +70,7 @@ namespace WpfMath.Parsers
{
public static partial class WpfTeXFormulaParser
{
public static XamlMath.TexFormulaParser Instance { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } }
public static XamlMath.TexFormulaParser Instance { get { throw null; } }
}
}
namespace WpfMath.Rendering
Expand All @@ -93,26 +88,16 @@ public void RenderTransformed(XamlMath.Boxes.Box box, System.Collections.Generic
public sealed partial class WpfBrush : XamlMath.Rendering.GenericBrush<System.Windows.Media.Brush>, System.IEquatable<WpfMath.Rendering.WpfBrush>
{
internal WpfBrush() { }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
protected override System.Type EqualityContract { [System.Runtime.CompilerServices.CompilerGeneratedAttribute] get { throw null; } }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
protected override System.Type EqualityContract { get { throw null; } }
public override bool Equals(object? obj) { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public bool Equals(WpfMath.Rendering.WpfBrush? other) { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public sealed override bool Equals(XamlMath.Rendering.GenericBrush<System.Windows.Media.Brush>? other) { throw null; }
public static WpfMath.Rendering.WpfBrush FromBrush(System.Windows.Media.Brush value) { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public override int GetHashCode() { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static bool operator ==(WpfMath.Rendering.WpfBrush? left, WpfMath.Rendering.WpfBrush? right) { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public static bool operator !=(WpfMath.Rendering.WpfBrush? left, WpfMath.Rendering.WpfBrush? right) { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
protected override bool PrintMembers(System.Text.StringBuilder builder) { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
public override string ToString() { throw null; }
[System.Runtime.CompilerServices.CompilerGeneratedAttribute]
[System.Runtime.CompilerServices.PreserveBaseOverridesAttribute]
virtual WpfMath.Rendering.WpfBrush XamlMath.Rendering.GenericBrush<System.Windows.Media.Brush>.<Clone>$() { throw null; }
}
Expand Down
Loading

0 comments on commit ef17701

Please sign in to comment.