public PapyrusTypeDefinitionResolver(
     IAssemblyNameResolver assemblyNameResolver,
     IPapyrusTypeReferenceResolver referenceResolver,
     IStatusCallbackService statusCallback)
 {
     this.referenceResolver    = referenceResolver;
     this.assemblyNameResolver = assemblyNameResolver;
     this.statusCallback       = statusCallback;
 }
Exemplo n.º 2
0
 public PapyrusCilAssemblyBuilder(IPapyrusScriptParser scriptParser, IPapyrusAssemblyParser assemblyParser,
                                  IPapyrusTypeDefinitionResolver typeDefinitionResolver, IPapyrusTypeReferenceResolver typeReferenceResolver,
                                  IAssemblyNameResolver nameResolver, IStatusCallbackService callback)
     : base(scriptParser, assemblyParser, typeDefinitionResolver, typeReferenceResolver, nameResolver, callback)
 {
     AssemblyNameResolver   = nameResolver;
     StatusCallback         = callback;
     PapyrusScriptParser    = scriptParser;
     PapyrusAssemblyParser  = assemblyParser;
     TypeDefinitionResolver = typeDefinitionResolver;
     TypeReferenceResolver  = typeReferenceResolver;
     TypeDefinitionResolver.Initialize(this);
     TypeReferenceResolver.Initialize(this);
 }
 /// <summary>
 /// </summary>
 /// <param name="statusCallback"></param>
 /// <param name="wordDictionaryFile"></param>
 public DictionaryPapyrusNameResolver(IStatusCallbackService statusCallback, string wordDictionaryFile = null)
 {
     statusCallbackService = statusCallback;
     // "wordlist.txt"
     if (string.IsNullOrEmpty(wordDictionaryFile))
     {
         return;
     }
     if (File.Exists(wordDictionaryFile))
     {
         statusCallbackService.WriteLine("Loading wordlist... This may take a few seconds.");
         WordList = File.ReadAllLines(wordDictionaryFile);
     }
     else
     {
         statusCallbackService.WriteLine("Wordlist was not found, skipping...");
         WordList = new string[0];
     }
 }