diff options
author | Mike Voorhees <michaelv@unity3d.com> | 2017-02-16 20:32:42 +0300 |
---|---|---|
committer | Marek Safar <marek.safar@gmail.com> | 2017-03-16 13:03:39 +0300 |
commit | fadebaa43f0593ead92ef3a777f81f3296f25adb (patch) | |
tree | a30cb4b7b1fec65f73692c88c87906feab8d7aee /linker | |
parent | 48b3dc4fc1bbc616c426cc827136fd82ce1b3ace (diff) |
ReaderParameters adjustments to LinkContext
Diffstat (limited to 'linker')
-rw-r--r-- | linker/Mono.Linker/LinkContext.cs | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/linker/Mono.Linker/LinkContext.cs b/linker/Mono.Linker/LinkContext.cs index eaaaca0d3..78aa3595a 100644 --- a/linker/Mono.Linker/LinkContext.cs +++ b/linker/Mono.Linker/LinkContext.cs @@ -88,6 +88,10 @@ namespace Mono.Linker { public AssemblyResolver Resolver { get { return _resolver; } + }
+
+ public ReaderParameters ReaderParameters { + get { return _readerParameters; } } public ISymbolReaderProvider SymbolReaderProvider { @@ -105,18 +109,24 @@ namespace Mono.Linker { public LinkContext (Pipeline pipeline) : this (pipeline, new AssemblyResolver ()) { + }
+
+ public LinkContext(Pipeline pipeline, AssemblyResolver resolver)
+ : this(pipeline, resolver, new ReaderParameters
+ {
+ AssemblyResolver = resolver,
+ }) + { } - public LinkContext (Pipeline pipeline, AssemblyResolver resolver) + public LinkContext (Pipeline pipeline, AssemblyResolver resolver, ReaderParameters readerParameters) { _pipeline = pipeline; _resolver = resolver; _actions = new Hashtable (); _parameters = new Hashtable (); _annotations = new AnnotationStore (); - _readerParameters = new ReaderParameters { - AssemblyResolver = _resolver, - }; + _readerParameters = readerParameters; } public TypeDefinition GetType (string fullName) |