summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/AssemblyParseResult.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-02-04 15:30:46 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-02-04 15:30:46 -0500
commit9c9833c9086b758589dafee10243e3bf47e12d73 (patch)
tree65c279c65e6edd598844b2dc41ad6e141fc48dd9 /src/StardewModdingAPI/Framework/AssemblyParseResult.cs
parente9cb691251668af87f25549fdedaf382e820075f (diff)
parent3919ab7a4aed7acd579e471f5660df5fbc890ae2 (diff)
downloadSMAPI-9c9833c9086b758589dafee10243e3bf47e12d73.tar.gz
SMAPI-9c9833c9086b758589dafee10243e3bf47e12d73.tar.bz2
SMAPI-9c9833c9086b758589dafee10243e3bf47e12d73.zip
Merge branch 'develop' into stable
Diffstat (limited to 'src/StardewModdingAPI/Framework/AssemblyParseResult.cs')
-rw-r--r--src/StardewModdingAPI/Framework/AssemblyParseResult.cs31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Framework/AssemblyParseResult.cs b/src/StardewModdingAPI/Framework/AssemblyParseResult.cs
new file mode 100644
index 00000000..bff976aa
--- /dev/null
+++ b/src/StardewModdingAPI/Framework/AssemblyParseResult.cs
@@ -0,0 +1,31 @@
+using System.IO;
+using Mono.Cecil;
+
+namespace StardewModdingAPI.Framework
+{
+ /// <summary>Metadata about a parsed assembly definition.</summary>
+ internal class AssemblyParseResult
+ {
+ /*********
+ ** Accessors
+ *********/
+ /// <summary>The original assembly file.</summary>
+ public readonly FileInfo File;
+
+ /// <summary>The assembly definition.</summary>
+ public readonly AssemblyDefinition Definition;
+
+
+ /*********
+ ** Public methods
+ *********/
+ /// <summary>Construct an instance.</summary>
+ /// <param name="file">The original assembly file.</param>
+ /// <param name="assembly">The assembly definition.</param>
+ public AssemblyParseResult(FileInfo file, AssemblyDefinition assembly)
+ {
+ this.File = file;
+ this.Definition = assembly;
+ }
+ }
+} \ No newline at end of file