File tree 4 files changed +4
-8
lines changed
4 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 17
17
18
18
using System . Diagnostics ;
19
19
using System . Diagnostics . CodeAnalysis ;
20
- using System . Diagnostics . Contracts ;
21
20
using Orion . Core . Entities ;
22
21
using Orion . Core . Utils ;
23
22
using Orion . Launcher . Utils ;
@@ -66,7 +65,7 @@ public Vector2f Size
66
65
67
66
public TTerrariaEntity Wrapped { get ; }
68
67
69
- [ Pure , ExcludeFromCodeCoverage ]
68
+ [ ExcludeFromCodeCoverage ]
70
69
public override string ToString ( ) => this . IsConcrete ( ) ? $ "<{ Name } (index: { Index } )>" : "<abstract instance>" ;
71
70
}
72
71
}
Original file line number Diff line number Diff line change 17
17
18
18
using System ;
19
19
using System . Diagnostics ;
20
- using System . Diagnostics . Contracts ;
21
20
using System . Runtime . CompilerServices ;
22
21
using System . Runtime . InteropServices ;
23
22
@@ -36,7 +35,7 @@ internal static class SpanExtensions
36
35
/// <param name="span">The span.</param>
37
36
/// <param name="index">The index.</param>
38
37
/// <returns>A reference to the element at the given <paramref name="index"/>.</returns>
39
- [ Pure , MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
38
+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
40
39
public static ref T At < T > ( this Span < T > span , int index )
41
40
{
42
41
Debug . Assert ( index >= 0 && index < span . Length ) ;
Original file line number Diff line number Diff line change 17
17
18
18
using System ;
19
19
using System . Diagnostics . CodeAnalysis ;
20
- using System . Diagnostics . Contracts ;
21
20
using Destructurama . Attributed ;
22
21
using Orion . Core . Entities ;
23
22
using Orion . Core . Items ;
@@ -68,7 +67,7 @@ public int Y
68
67
69
68
public Terraria . Chest Wrapped { get ; }
70
69
71
- [ Pure , ExcludeFromCodeCoverage ]
70
+ [ ExcludeFromCodeCoverage ]
72
71
public override string ToString ( ) => this . IsConcrete ( ) ? $ "<(index: { Index } )>" : "<abstract instance>" ;
73
72
}
74
73
}
Original file line number Diff line number Diff line change 17
17
18
18
using System ;
19
19
using System . Diagnostics . CodeAnalysis ;
20
- using System . Diagnostics . Contracts ;
21
20
using Destructurama . Attributed ;
22
21
using Orion . Core . Entities ;
23
22
using Orion . Core . World . TileEntities ;
@@ -63,7 +62,7 @@ public int Y
63
62
64
63
public Terraria . Sign Wrapped { get ; }
65
64
66
- [ Pure , ExcludeFromCodeCoverage ]
65
+ [ ExcludeFromCodeCoverage ]
67
66
public override string ToString ( ) => this . IsConcrete ( ) ? $ "<(index: { Index } )>" : "<abstract instance>" ;
68
67
}
69
68
}
You can’t perform that action at this time.
0 commit comments