-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c9f28d9
commit 62b322a
Showing
18 changed files
with
268 additions
and
83 deletions.
There are no files selected for viewing
12 changes: 5 additions & 7 deletions
12
src/PhoneBox.Generators/EmbeddedSources/SignalRHubGenerationAttribute.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/PhoneBox.Generators/EmbeddedSources/SignalRHubGenerationOutputs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
src/PhoneBox.Generators/PhoneBox.Generators.csproj.DotSettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:String x:Key="/Default/CodeInspection/Daemon/ConfigureAwaitAnalysisMode/@EntryValue">Library</s:String> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=embeddedsources/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=embeddedsources/@EntryIndexedValue">True</s:Boolean> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=utilities/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace PhoneBox.Generators | ||
{ | ||
internal readonly struct Annotation | ||
{ | ||
public string Name { get; } | ||
public string? Arguments { get; } | ||
|
||
public static Annotation GeneratedCode = new Annotation("global::System.CodeDom.Compiler.GeneratedCode", $"(\"{(ThisAssembly.AssemblyTitle)}\", \"{(ThisAssembly.AssemblyFileVersion)}\")"); | ||
public static Annotation DebuggerNonUserCode = new Annotation("global::System.Diagnostics.DebuggerNonUserCode"); | ||
public static Annotation ExcludeFromCodeCoverage = new Annotation("global::System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage"); | ||
public static IEnumerable<Annotation> All | ||
{ | ||
get | ||
{ | ||
yield return GeneratedCode; | ||
yield return DebuggerNonUserCode; | ||
yield return ExcludeFromCodeCoverage; | ||
} | ||
} | ||
|
||
private Annotation(string name, string? arguments = null) | ||
{ | ||
this.Name = name; | ||
this.Arguments = arguments; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
tests/PhoneBox.Generators.Tests/PhoneBox.Generators.Tests.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 2 additions & 1 deletion
3
tests/PhoneBox.Generators.Tests/PhoneBox.Generators.Tests.csproj.DotSettings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"> | ||
<s:String x:Key="/Default/CodeInspection/Daemon/ConfigureAwaitAnalysisMode/@EntryValue">Library</s:String></wpf:ResourceDictionary> | ||
<s:String x:Key="/Default/CodeInspection/Daemon/ConfigureAwaitAnalysisMode/@EntryValue">Library</s:String> | ||
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=utilities/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary> |
12 changes: 12 additions & 0 deletions
12
tests/PhoneBox.Generators.Tests/Resources/CallConnectedEvent.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
tests/PhoneBox.Generators.Tests/Resources/CallDisconnectedEvent.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/PhoneBox.Generators.Tests/Resources/CallHangUpReason.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
tests/PhoneBox.Generators.Tests/Resources/CallState.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 12 additions & 3 deletions
15
tests/PhoneBox.Generators.Tests/Resources/HubEndpointRouteBuilderExtensions.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 11 additions & 3 deletions
14
tests/PhoneBox.Generators.Tests/Resources/ITelephonyHub.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
using System.Threading.Tasks; | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated by a tool. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
namespace PhoneBox.Abstractions | ||
{ | ||
[global::System.CodeDom.Compiler.GeneratedCode("PhoneBox.Generators", "%GENERATORVERSION%")] | ||
public interface ITelephonyHub | ||
{ | ||
Task ReceiveCallConnected(CallConnectedEvent content); | ||
Task ReceiveCallDisconnected(CallDisconnectedEvent content); | ||
global::System.Threading.Tasks.Task ReceiveCallConnected(global::PhoneBox.Abstractions.CallConnectedEvent content); | ||
global::System.Threading.Tasks.Task ReceiveCallDisconnected(global::PhoneBox.Abstractions.CallDisconnectedEvent content); | ||
} | ||
} |
20 changes: 15 additions & 5 deletions
20
tests/PhoneBox.Generators.Tests/Resources/SignalRHubGenerationAttribute.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
tests/PhoneBox.Generators.Tests/Resources/SignalRHubGenerationOutputs.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 9 additions & 3 deletions
12
tests/PhoneBox.Generators.Tests/Resources/TelephonyHub.generated.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
using Microsoft.AspNetCore.SignalR; | ||
using PhoneBox.Abstractions; | ||
//------------------------------------------------------------------------------ | ||
// <auto-generated> | ||
// This code was generated by a tool. | ||
// | ||
// Changes to this file may cause incorrect behavior and will be lost if | ||
// the code is regenerated. | ||
// </auto-generated> | ||
//------------------------------------------------------------------------------ | ||
|
||
namespace PhoneBox.Generators.Tests | ||
{ | ||
public partial class TelephonyHub : Hub<ITelephonyHub> | ||
public partial class TelephonyHub : global::Microsoft.AspNetCore.SignalR.Hub<global::PhoneBox.Abstractions.ITelephonyHub> | ||
{ | ||
} | ||
} |