2 writes to context
illink (2)
76 references to context
illink (76)
Linker\Driver.cs (76)
104Debug.Assert(context != null);
105return context;
109Debug.Assert(context == null);
237context.StripSecurity = true;
255context.LogError(null, DiagnosticId.UnrecognizedCommandLineOption, token);
271if (!GetBoolParam(token, l => context.IgnoreUnresolved = l))
277context.LogMessages = true;
295context.LogError(null, DiagnosticId.InvalidAssemblyName, assemblyName);
299context.TraceAssembly ??= new HashSet<string>();
300context.TraceAssembly.Add(assemblyName);
312context.LogError(null, DiagnosticId.InvalidDependenciesFileFormat);
318if (!GetBoolParam(token, l => context.EnableReducedTracing = l))
324if (!GetBoolParam(token, l => context.KeepUsedAttributeTypesOnly = l))
330if (!GetBoolParam(token, l => context.StripSecurity = l))
367if (!GetBoolParam(token, l => context.AddReflectionAnnotations = l))
384context.DefaultAction = action.Value;
390context.LogError(null, DiagnosticId.InvalidAssemblyName, assemblyName);
394context.RegisterAssemblyAction(assemblyName, action.Value);
406context.TrimAction = action.Value;
429context.LogError(null, DiagnosticId.CustomDataFormatIsInvalid);
433context.SetCustomData(values[0], values[1]);
445if (!GetBoolParam(token, l => context.KeepComInterfaces = l))
475if (!GetBoolParam(token, l => context.EnableSerializationDiscovery = l))
481if (!GetBoolParam(token, l => context.DisableOperatorDiscovery = l))
487if (!GetBoolParam(token, l => context.DisableGeneratedCodeHeuristics = l))
496context.TypeMapEntryAssembly = typeMapEntryAssembly;
500if (!GetBoolParam(token, l => context.IgnoreDescriptors = l))
506if (!GetBoolParam(token, l => context.IgnoreSubstitutions = l))
512if (!GetBoolParam(token, l => context.IgnoreLinkAttributes = l))
551context.SetFeatureValue(featureName, value);
576if (!GetBoolParam(token, l => context.DeterministicOutput = l))
586context.AssemblyListFile = assemblyListFile;
594context.PInvokesListFile = pinvokesListFile;
620context.LogError(null, DiagnosticId.InvalidGenerateWarningSuppressionsValue, generateWarningSuppressionsArgument);
624context.WarningSuppressionWriter = new WarningSuppressionWriter(context, fileOutputKind);
629context.NoTrimWarn = true;
636context.NoWarn.UnionWith(ProcessWarningCodes(noWarnArgument));
645context.WarnAsError[warning] = true;
650context.GeneralWarnAsError = true;
651context.WarnAsError.Clear();
661context.WarnAsError[warning] = false;
666context.GeneralWarnAsError = false;
667context.WarnAsError.Clear();
679context.WarnVersion = version;
691context.LogError(null, DiagnosticId.InvalidAssemblyName, assemblyName);
695context.SingleWarn[assemblyName] = true;
699context.GeneralSingleWarn = true;
700context.SingleWarn.Clear();
713context.LogError(null, DiagnosticId.InvalidAssemblyName, assemblyName);
717context.SingleWarn[assemblyName] = false;
721context.GeneralSingleWarn = false;
722context.SingleWarn.Clear();
729if (!GetBoolParam(token, l => context.PreserveSymbolPaths = l))
754context.Resolver.AddSearchDirectory(info.FullName);
762context.OutputDirectory = outputDirectory;
772context.LogError(null, DiagnosticId.XmlDescriptorCouldNotBeFound, xmlFile);
807if (!GetBoolParam(token, l => context.LinkSymbols = l))
812if (!GetBoolParam(token, l => context.DeterministicOutput = !l))
817if (!GetBoolParam(token, l => context.IgnoreDescriptors = !l))
831context.Resolver.AddReferenceAssembly(reference);
837context.LogError(null, DiagnosticId.UnrecognizedCommandLineOption, token);
843context.LogError(null, DiagnosticId.NoFilesToLinkSpecified, resolvers);
849context.LogError(null, DiagnosticId.NewMvidAndDeterministicCannotBeUsedAtSameTime);
853context.MetadataTrimming = metadataTrimming;
858context.DeterministicOutput = true;
865AddXmlDependencyRecorder(context, dependenciesFileName);
868AddDgmlDependencyRecorder(context, dependenciesFileName);
871context.LogError(null, DiagnosticId.InvalidDependenciesFileFormat);
882context.Optimizations.Enable(opt, assemblyName);
884context.Optimizations.Disable(opt, assemblyName);
902if (context.DeterministicOutput)
905if (context.AddReflectionAnnotations)
937if (context.EnableSerializationDiscovery)
940if (!context.DisableOperatorDiscovery)
1637context?.Dispose();