-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into dev/rolf/windows-test…
…s-html-report
- Loading branch information
Showing
72 changed files
with
8,007 additions
and
976 deletions.
There are no files selected for viewing
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
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
29 changes: 29 additions & 0 deletions
29
src/rgen/Microsoft.Macios.Generator/Context/BindingContext.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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
using Microsoft.Macios.Generator.DataModel; | ||
|
||
namespace Microsoft.Macios.Generator.Context; | ||
|
||
readonly struct BindingContext { | ||
|
||
/// <summary> | ||
/// The root context of the current binding operation. | ||
/// </summary> | ||
public RootBindingContext RootContext { get; } | ||
|
||
/// <summary> | ||
/// Tabbed string builder that can be used to write the generated code. | ||
/// </summary> | ||
public TabbedStringBuilder Builder { get; } | ||
|
||
/// <summary> | ||
/// Current code changes for the binding context. | ||
/// </summary> | ||
public CodeChanges Changes { get; } | ||
|
||
public BindingContext (RootBindingContext rootContext, TabbedStringBuilder builder, CodeChanges changes) | ||
{ | ||
RootContext = rootContext; | ||
Builder = builder; | ||
Changes = changes; | ||
} | ||
|
||
} |
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
Oops, something went wrong.