2 writes to context
illink (2)
75 references to context
illink (75)
Linker\Driver.cs (75)
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.IgnoreDescriptors = l))
469if (!GetBoolParam(token, l => context.IgnoreSubstitutions = l))
475if (!GetBoolParam(token, l => context.IgnoreLinkAttributes = l))
514context.SetFeatureValue(featureName, value);
537if (!GetBoolParam(token, l => context.DeterministicOutput = l))
547context.AssemblyListFile = assemblyListFile;
555context.PInvokesListFile = pinvokesListFile;
580context.LogError(null, DiagnosticId.InvalidGenerateWarningSuppressionsValue, generateWarningSuppressionsArgument);
584context.WarningSuppressionWriter = new WarningSuppressionWriter(context, fileOutputKind);
588context.NoTrimWarn = true;
595context.NoWarn.UnionWith(ProcessWarningCodes(noWarnArgument));
604context.WarnAsError[warning] = true;
609context.GeneralWarnAsError = true;
610context.WarnAsError.Clear();
620context.WarnAsError[warning] = false;
625context.GeneralWarnAsError = false;
626context.WarnAsError.Clear();
638context.WarnVersion = version;
650context.LogError(null, DiagnosticId.InvalidAssemblyName, assemblyName);
654context.SingleWarn[assemblyName] = true;
658context.GeneralSingleWarn = true;
659context.SingleWarn.Clear();
672context.LogError(null, DiagnosticId.InvalidAssemblyName, assemblyName);
676context.SingleWarn[assemblyName] = false;
680context.GeneralSingleWarn = false;
681context.SingleWarn.Clear();
688if (!GetBoolParam(token, l => context.PreserveSymbolPaths = l))
713context.Resolver.AddSearchDirectory(info.FullName);
721context.OutputDirectory = outputDirectory;
731context.LogError(null, DiagnosticId.XmlDescriptorCouldNotBeFound, xmlFile);
745context.LogError(null, DiagnosticId.RootAssemblyCouldNotBeFound, assemblyFile);
764if (!GetBoolParam(token, l => context.LinkSymbols = l))
769if (!GetBoolParam(token, l => context.DeterministicOutput = !l))
774if (!GetBoolParam(token, l => context.IgnoreDescriptors = !l))
788context.Resolver.AddReferenceAssembly(reference);
794context.LogError(null, DiagnosticId.UnrecognizedCommandLineOption, token);
800context.LogError(null, DiagnosticId.NoFilesToLinkSpecified, resolvers);
806context.LogError(null, DiagnosticId.NewMvidAndDeterministicCannotBeUsedAtSameTime);
810context.MetadataTrimming = metadataTrimming;
815context.DeterministicOutput = true;
822AddXmlDependencyRecorder(context, dependenciesFileName);
825AddDgmlDependencyRecorder(context, dependenciesFileName);
828context.LogError(null, DiagnosticId.InvalidDependenciesFileFormat);
839context.Optimizations.Enable(opt, assemblyName);
841context.Optimizations.Disable(opt, assemblyName);
858if (context.DeterministicOutput)
861if (context.AddReflectionAnnotations)
893if (context.EnableSerializationDiscovery)
896if (!context.DisableOperatorDiscovery)
1580context?.Dispose();