2 writes to context
illink (2)
71 references to context
illink (71)
Linker\Driver.cs (71)
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;
249 context.LogError (null, DiagnosticId.InvalidDependenciesFileFormat);
255 if (!GetBoolParam (token, l => context.EnableReducedTracing = l))
261 if (!GetBoolParam (token, l => context.KeepUsedAttributeTypesOnly = l))
267 if (!GetBoolParam (token, l => context.StripSecurity = l))
303 if (!GetBoolParam (token, l => context.AddReflectionAnnotations = l))
318 context.DefaultAction = action.Value;
323 context.LogError (null, DiagnosticId.InvalidAssemblyName, assemblyName);
327 context.RegisterAssemblyAction (assemblyName, action.Value);
338 context.TrimAction = action.Value;
358 context.LogError (null, DiagnosticId.CustomDataFormatIsInvalid);
362 context.SetCustomData (values[0], values[1]);
366 if (!GetBoolParam (token, l => context.KeepComInterfaces = l))
395 if (!GetBoolParam (token, l => context.EnableSerializationDiscovery = l))
401 if (!GetBoolParam (token, l => context.DisableOperatorDiscovery = l))
407 if (!GetBoolParam (token, l => context.IgnoreDescriptors = l))
413 if (!GetBoolParam (token, l => context.IgnoreSubstitutions = l))
419 if (!GetBoolParam (token, l => context.IgnoreLinkAttributes = l))
454 context.SetFeatureValue (featureName, value);
476 if (!GetBoolParam (token, l => context.DeterministicOutput = l))
486 context.AssemblyListFile = assemblyListFile;
494 context.PInvokesListFile = pinvokesListFile;
517 context.LogError (null, DiagnosticId.InvalidGenerateWarningSuppressionsValue, generateWarningSuppressionsArgument);
521 context.WarningSuppressionWriter = new WarningSuppressionWriter (context, fileOutputKind);
525 context.NoTrimWarn = true;
532 context.NoWarn.UnionWith (ProcessWarningCodes (noWarnArgument));
540 context.WarnAsError[warning] = true;
543 context.GeneralWarnAsError = true;
544 context.WarnAsError.Clear ();
553 context.WarnAsError[warning] = false;
556 context.GeneralWarnAsError = false;
557 context.WarnAsError.Clear ();
569 context.WarnVersion = version;
578 context.LogError (null, DiagnosticId.InvalidAssemblyName, assemblyName);
582 context.SingleWarn[assemblyName] = true;
584 context.GeneralSingleWarn = true;
585 context.SingleWarn.Clear ();
595 context.LogError (null, DiagnosticId.InvalidAssemblyName, assemblyName);
599 context.SingleWarn[assemblyName] = false;
601 context.GeneralSingleWarn = false;
602 context.SingleWarn.Clear ();
626 context.Resolver.AddSearchDirectory (info.FullName);
634 context.OutputDirectory = outputDirectory;
642 context.LogError (null, DiagnosticId.XmlDescriptorCouldNotBeFound, xmlFile);
654 context.LogError (null, DiagnosticId.RootAssemblyCouldNotBeFound, assemblyFile);
672 if (!GetBoolParam (token, l => context.LinkSymbols = l))
677 if (!GetBoolParam (token, l => context.DeterministicOutput = !l))
682 if (!GetBoolParam (token, l => context.IgnoreDescriptors = !l))
696 context.Resolver.AddReferenceAssembly (reference);
702 context.LogError (null, DiagnosticId.UnrecognizedCommandLineOption, token);
707 context.LogError (null, DiagnosticId.NoFilesToLinkSpecified, resolvers);
712 context.LogError (null, DiagnosticId.NewMvidAndDeterministicCannotBeUsedAtSameTime);
716 context.MetadataTrimming = metadataTrimming;
720 context.DeterministicOutput = true;
725 AddXmlDependencyRecorder (context, dependenciesFileName);
728 AddDgmlDependencyRecorder (context, dependenciesFileName);
731 context.LogError (null, DiagnosticId.InvalidDependenciesFileFormat);
740 context.Optimizations.Enable (opt, assemblyName);
742 context.Optimizations.Disable (opt, assemblyName);
759 if (context.DeterministicOutput)
762 if (context.AddReflectionAnnotations)
793 if (context.EnableSerializationDiscovery)
796 if (!context.DisableOperatorDiscovery)
1441 context?.Dispose ();