2 writes to context
illink (2)
76 references to context
illink (76)
Linker\Driver.cs (76)
93Debug.Assert(context != null);
94return context;
98Debug.Assert(context == null);
226context.StripSecurity = true;
240context.LogError(null, DiagnosticId.UnrecognizedCommandLineOption, token);
256if (!GetBoolParam(token, l => context.IgnoreUnresolved = l))
262context.LogMessages = true;
280context.LogError(null, DiagnosticId.InvalidAssemblyName, assemblyName);
284context.TraceAssembly ??= new HashSet<string>();
285context.TraceAssembly.Add(assemblyName);
297context.LogError(null, DiagnosticId.InvalidDependenciesFileFormat);
303if (!GetBoolParam(token, l => context.EnableReducedTracing = l))
309if (!GetBoolParam(token, l => context.KeepUsedAttributeTypesOnly = l))
315if (!GetBoolParam(token, l => context.StripSecurity = l))
352if (!GetBoolParam(token, l => context.AddReflectionAnnotations = l))
369context.DefaultAction = action.Value;
375context.LogError(null, DiagnosticId.InvalidAssemblyName, assemblyName);
379context.RegisterAssemblyAction(assemblyName, action.Value);
391context.TrimAction = action.Value;
413context.LogError(null, DiagnosticId.CustomDataFormatIsInvalid);
417context.SetCustomData(values[0], values[1]);
421if (!GetBoolParam(token, l => context.KeepComInterfaces = l))
451if (!GetBoolParam(token, l => context.EnableSerializationDiscovery = l))
457if (!GetBoolParam(token, l => context.DisableOperatorDiscovery = l))
463if (!GetBoolParam(token, l => context.DisableGeneratedCodeHeuristics = l))
469if (!GetBoolParam(token, l => context.IgnoreDescriptors = l))
475if (!GetBoolParam(token, l => context.IgnoreSubstitutions = l))
481if (!GetBoolParam(token, l => context.IgnoreLinkAttributes = l))
520context.SetFeatureValue(featureName, value);
543if (!GetBoolParam(token, l => context.DeterministicOutput = l))
553context.AssemblyListFile = assemblyListFile;
561context.PInvokesListFile = pinvokesListFile;
586context.LogError(null, DiagnosticId.InvalidGenerateWarningSuppressionsValue, generateWarningSuppressionsArgument);
590context.WarningSuppressionWriter = new WarningSuppressionWriter(context, fileOutputKind);
594context.NoTrimWarn = true;
601context.NoWarn.UnionWith(ProcessWarningCodes(noWarnArgument));
610context.WarnAsError[warning] = true;
615context.GeneralWarnAsError = true;
616context.WarnAsError.Clear();
626context.WarnAsError[warning] = false;
631context.GeneralWarnAsError = false;
632context.WarnAsError.Clear();
644context.WarnVersion = version;
656context.LogError(null, DiagnosticId.InvalidAssemblyName, assemblyName);
660context.SingleWarn[assemblyName] = true;
664context.GeneralSingleWarn = true;
665context.SingleWarn.Clear();
678context.LogError(null, DiagnosticId.InvalidAssemblyName, assemblyName);
682context.SingleWarn[assemblyName] = false;
686context.GeneralSingleWarn = false;
687context.SingleWarn.Clear();
694if (!GetBoolParam(token, l => context.PreserveSymbolPaths = l))
719context.Resolver.AddSearchDirectory(info.FullName);
727context.OutputDirectory = outputDirectory;
737context.LogError(null, DiagnosticId.XmlDescriptorCouldNotBeFound, xmlFile);
751context.LogError(null, DiagnosticId.RootAssemblyCouldNotBeFound, assemblyFile);
770if (!GetBoolParam(token, l => context.LinkSymbols = l))
775if (!GetBoolParam(token, l => context.DeterministicOutput = !l))
780if (!GetBoolParam(token, l => context.IgnoreDescriptors = !l))
794context.Resolver.AddReferenceAssembly(reference);
800context.LogError(null, DiagnosticId.UnrecognizedCommandLineOption, token);
806context.LogError(null, DiagnosticId.NoFilesToLinkSpecified, resolvers);
812context.LogError(null, DiagnosticId.NewMvidAndDeterministicCannotBeUsedAtSameTime);
816context.MetadataTrimming = metadataTrimming;
821context.DeterministicOutput = true;
828AddXmlDependencyRecorder(context, dependenciesFileName);
831AddDgmlDependencyRecorder(context, dependenciesFileName);
834context.LogError(null, DiagnosticId.InvalidDependenciesFileFormat);
845context.Optimizations.Enable(opt, assemblyName);
847context.Optimizations.Disable(opt, assemblyName);
864if (context.DeterministicOutput)
867if (context.AddReflectionAnnotations)
899if (context.EnableSerializationDiscovery)
902if (!context.DisableOperatorDiscovery)
1586context?.Dispose();