2 writes to context
illink (2)
75 references to context
illink (75)
Linker\Driver.cs (75)
83 Debug.Assert (context != null);
84 return context;
87 Debug.Assert (context == null);
199 context.StripSecurity = true;
211 context.LogError (null, DiagnosticId.UnrecognizedCommandLineOption, token);
225 if (!GetBoolParam (token, l => context.IgnoreUnresolved = l))
231 context.LogMessages = true;
246 context.LogError (null, DiagnosticId.InvalidAssemblyName, assemblyName);
250 context.TraceAssembly ??= new HashSet<string> ();
251 context.TraceAssembly.Add (assemblyName);
262 context.LogError (null, DiagnosticId.InvalidDependenciesFileFormat);
268 if (!GetBoolParam (token, l => context.EnableReducedTracing = l))
274 if (!GetBoolParam (token, l => context.KeepUsedAttributeTypesOnly = l))
280 if (!GetBoolParam (token, l => context.StripSecurity = l))
316 if (!GetBoolParam (token, l => context.AddReflectionAnnotations = l))
331 context.DefaultAction = action.Value;
336 context.LogError (null, DiagnosticId.InvalidAssemblyName, assemblyName);
340 context.RegisterAssemblyAction (assemblyName, action.Value);
351 context.TrimAction = action.Value;
371 context.LogError (null, DiagnosticId.CustomDataFormatIsInvalid);
375 context.SetCustomData (values[0], values[1]);
379 if (!GetBoolParam (token, l => context.KeepComInterfaces = l))
408 if (!GetBoolParam (token, l => context.EnableSerializationDiscovery = l))
414 if (!GetBoolParam (token, l => context.DisableOperatorDiscovery = l))
420 if (!GetBoolParam (token, l => context.IgnoreDescriptors = l))
426 if (!GetBoolParam (token, l => context.IgnoreSubstitutions = l))
432 if (!GetBoolParam (token, l => context.IgnoreLinkAttributes = l))
467 context.SetFeatureValue (featureName, value);
489 if (!GetBoolParam (token, l => context.DeterministicOutput = l))
499 context.AssemblyListFile = assemblyListFile;
507 context.PInvokesListFile = pinvokesListFile;
530 context.LogError (null, DiagnosticId.InvalidGenerateWarningSuppressionsValue, generateWarningSuppressionsArgument);
534 context.WarningSuppressionWriter = new WarningSuppressionWriter (context, fileOutputKind);
538 context.NoTrimWarn = true;
545 context.NoWarn.UnionWith (ProcessWarningCodes (noWarnArgument));
553 context.WarnAsError[warning] = true;
556 context.GeneralWarnAsError = true;
557 context.WarnAsError.Clear ();
566 context.WarnAsError[warning] = false;
569 context.GeneralWarnAsError = false;
570 context.WarnAsError.Clear ();
582 context.WarnVersion = version;
591 context.LogError (null, DiagnosticId.InvalidAssemblyName, assemblyName);
595 context.SingleWarn[assemblyName] = true;
597 context.GeneralSingleWarn = true;
598 context.SingleWarn.Clear ();
608 context.LogError (null, DiagnosticId.InvalidAssemblyName, assemblyName);
612 context.SingleWarn[assemblyName] = false;
614 context.GeneralSingleWarn = false;
615 context.SingleWarn.Clear ();
622 if (!GetBoolParam (token, l => context.PreserveSymbolPaths = l))
645 context.Resolver.AddSearchDirectory (info.FullName);
653 context.OutputDirectory = outputDirectory;
661 context.LogError (null, DiagnosticId.XmlDescriptorCouldNotBeFound, xmlFile);
673 context.LogError (null, DiagnosticId.RootAssemblyCouldNotBeFound, assemblyFile);
691 if (!GetBoolParam (token, l => context.LinkSymbols = l))
696 if (!GetBoolParam (token, l => context.DeterministicOutput = !l))
701 if (!GetBoolParam (token, l => context.IgnoreDescriptors = !l))
715 context.Resolver.AddReferenceAssembly (reference);
721 context.LogError (null, DiagnosticId.UnrecognizedCommandLineOption, token);
726 context.LogError (null, DiagnosticId.NoFilesToLinkSpecified, resolvers);
731 context.LogError (null, DiagnosticId.NewMvidAndDeterministicCannotBeUsedAtSameTime);
735 context.MetadataTrimming = metadataTrimming;
739 context.DeterministicOutput = true;
744 AddXmlDependencyRecorder (context, dependenciesFileName);
747 AddDgmlDependencyRecorder (context, dependenciesFileName);
750 context.LogError (null, DiagnosticId.InvalidDependenciesFileFormat);
759 context.Optimizations.Enable (opt, assemblyName);
761 context.Optimizations.Disable (opt, assemblyName);
778 if (context.DeterministicOutput)
781 if (context.AddReflectionAnnotations)
812 if (context.EnableSerializationDiscovery)
815 if (!context.DisableOperatorDiscovery)
1461 context?.Dispose ();