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))
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);
771if (!GetBoolParam(token, l => context.LinkSymbols = l))
776if (!GetBoolParam(token, l => context.DeterministicOutput = !l))
781if (!GetBoolParam(token, l => context.IgnoreDescriptors = !l))
795context.Resolver.AddReferenceAssembly(reference);
801context.LogError(null, DiagnosticId.UnrecognizedCommandLineOption, token);
807context.LogError(null, DiagnosticId.NoFilesToLinkSpecified, resolvers);
813context.LogError(null, DiagnosticId.NewMvidAndDeterministicCannotBeUsedAtSameTime);
817context.MetadataTrimming = metadataTrimming;
822context.DeterministicOutput = true;
829AddXmlDependencyRecorder(context, dependenciesFileName);
832AddDgmlDependencyRecorder(context, dependenciesFileName);
835context.LogError(null, DiagnosticId.InvalidDependenciesFileFormat);
846context.Optimizations.Enable(opt, assemblyName);
848context.Optimizations.Disable(opt, assemblyName);
865if (context.DeterministicOutput)
868if (context.AddReflectionAnnotations)
900if (context.EnableSerializationDiscovery)
903if (!context.DisableOperatorDiscovery)
1588context?.Dispose();