2 writes to context
illink (2)
77 references to context
illink (77)
Linker\Driver.cs (77)
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))
472context.TypeMapEntryAssembly = typeMapEntryAssembly;
476if (!GetBoolParam(token, l => context.IgnoreDescriptors = l))
482if (!GetBoolParam(token, l => context.IgnoreSubstitutions = l))
488if (!GetBoolParam(token, l => context.IgnoreLinkAttributes = l))
527context.SetFeatureValue(featureName, value);
550if (!GetBoolParam(token, l => context.DeterministicOutput = l))
560context.AssemblyListFile = assemblyListFile;
568context.PInvokesListFile = pinvokesListFile;
593context.LogError(null, DiagnosticId.InvalidGenerateWarningSuppressionsValue, generateWarningSuppressionsArgument);
597context.WarningSuppressionWriter = new WarningSuppressionWriter(context, fileOutputKind);
601context.NoTrimWarn = true;
608context.NoWarn.UnionWith(ProcessWarningCodes(noWarnArgument));
617context.WarnAsError[warning] = true;
622context.GeneralWarnAsError = true;
623context.WarnAsError.Clear();
633context.WarnAsError[warning] = false;
638context.GeneralWarnAsError = false;
639context.WarnAsError.Clear();
651context.WarnVersion = version;
663context.LogError(null, DiagnosticId.InvalidAssemblyName, assemblyName);
667context.SingleWarn[assemblyName] = true;
671context.GeneralSingleWarn = true;
672context.SingleWarn.Clear();
685context.LogError(null, DiagnosticId.InvalidAssemblyName, assemblyName);
689context.SingleWarn[assemblyName] = false;
693context.GeneralSingleWarn = false;
694context.SingleWarn.Clear();
701if (!GetBoolParam(token, l => context.PreserveSymbolPaths = l))
726context.Resolver.AddSearchDirectory(info.FullName);
734context.OutputDirectory = outputDirectory;
744context.LogError(null, DiagnosticId.XmlDescriptorCouldNotBeFound, xmlFile);
758context.LogError(null, DiagnosticId.RootAssemblyCouldNotBeFound, assemblyFile);
777if (!GetBoolParam(token, l => context.LinkSymbols = l))
782if (!GetBoolParam(token, l => context.DeterministicOutput = !l))
787if (!GetBoolParam(token, l => context.IgnoreDescriptors = !l))
801context.Resolver.AddReferenceAssembly(reference);
807context.LogError(null, DiagnosticId.UnrecognizedCommandLineOption, token);
813context.LogError(null, DiagnosticId.NoFilesToLinkSpecified, resolvers);
819context.LogError(null, DiagnosticId.NewMvidAndDeterministicCannotBeUsedAtSameTime);
823context.MetadataTrimming = metadataTrimming;
828context.DeterministicOutput = true;
835AddXmlDependencyRecorder(context, dependenciesFileName);
838AddDgmlDependencyRecorder(context, dependenciesFileName);
841context.LogError(null, DiagnosticId.InvalidDependenciesFileFormat);
852context.Optimizations.Enable(opt, assemblyName);
854context.Optimizations.Disable(opt, assemblyName);
871if (context.DeterministicOutput)
874if (context.AddReflectionAnnotations)
906if (context.EnableSerializationDiscovery)
909if (!context.DisableOperatorDiscovery)
1594context?.Dispose();