36 references to FunctionId
Microsoft.CodeAnalysis.CodeStyle (36)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
48
using (Logger.LogBlock(
FunctionId
.Formatting_ContextInitialization, CancellationToken.None))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractAggregatedFormattingResult.cs (2)
69
using (Logger.LogBlock(
FunctionId
.Formatting_AggregateCreateTextChanges, cancellationToken))
101
using (Logger.LogBlock(
FunctionId
.Formatting_AggregateCreateFormattedRoot, cancellationToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (6)
115
using (Logger.LogBlock(
FunctionId
.Formatting_Format, FormatSummary, cancellationToken))
224
using (Logger.LogBlock(
FunctionId
.Formatting_CollectTokenOperation, cancellationToken))
348
using (Logger.LogBlock(
FunctionId
.Formatting_ApplyAlignOperation, cancellationToken))
378
using (Logger.LogBlock(
FunctionId
.Formatting_ApplyAnchorOperation, cancellationToken))
433
using (Logger.LogBlock(
FunctionId
.Formatting_ApplySpaceAndLine, cancellationToken))
490
using (Logger.LogBlock(
FunctionId
.Formatting_BuildContext, cancellationToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormattingResult.cs (2)
56
using (Logger.LogBlock(
FunctionId
.Formatting_CreateTextChanges, cancellationToken))
90
using (Logger.LogBlock(
FunctionId
.Formatting_CreateFormattedRoot, cancellationToken))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\TokenStream.cs (1)
53
using (Logger.LogBlock(
FunctionId
.Formatting_TokenStreamConstruction, CancellationToken.None))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\ILogger.cs (4)
17
bool IsEnabled(
FunctionId
functionId);
22
void Log(
FunctionId
functionId, LogMessage logMessage);
27
void LogBlockStart(
FunctionId
functionId, LogMessage logMessage, int uniquePairId, CancellationToken cancellationToken);
32
void LogBlockEnd(
FunctionId
functionId, LogMessage logMessage, int uniquePairId, int delta, CancellationToken cancellationToken);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.cs (16)
43
private static bool TryGetActiveLogger(
FunctionId
functionId, [NotNullWhen(true)] out ILogger? activeLogger)
59
public static void Log(
FunctionId
functionId, string? message = null, LogLevel logLevel = LogLevel.Debug)
71
public static void Log(
FunctionId
functionId, Func<string> messageGetter, LogLevel logLevel = LogLevel.Debug)
86
public static void Log<TArg>(
FunctionId
functionId, Func<TArg, string> messageGetter, TArg arg, LogLevel logLevel = LogLevel.Debug)
100
public static void Log<TArg0, TArg1>(
FunctionId
functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, LogLevel logLevel = LogLevel.Debug)
114
public static void Log<TArg0, TArg1, TArg2>(
FunctionId
functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, LogLevel logLevel = LogLevel.Debug)
128
public static void Log<TArg0, TArg1, TArg2, TArg3>(
FunctionId
functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, LogLevel logLevel = LogLevel.Debug)
141
public static void Log(
FunctionId
functionId, LogMessage logMessage)
159
public static IDisposable LogBlock(
FunctionId
functionId, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
165
public static IDisposable LogBlock(
FunctionId
functionId, string? message, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
174
public static IDisposable LogBlock(
FunctionId
functionId, Func<string> messageGetter, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
183
public static IDisposable LogBlock<TArg>(
FunctionId
functionId, Func<TArg, string> messageGetter, TArg arg, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
192
public static IDisposable LogBlock<TArg0, TArg1>(
FunctionId
functionId, Func<TArg0, TArg1, string> messageGetter, TArg0 arg0, TArg1 arg1, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
201
public static IDisposable LogBlock<TArg0, TArg1, TArg2>(
FunctionId
functionId, Func<TArg0, TArg1, TArg2, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
210
public static IDisposable LogBlock<TArg0, TArg1, TArg2, TArg3>(
FunctionId
functionId, Func<TArg0, TArg1, TArg2, TArg3, string> messageGetter, TArg0 arg0, TArg1 arg1, TArg2 arg2, TArg3 arg3, CancellationToken token, LogLevel logLevel = LogLevel.Trace)
218
public static IDisposable LogBlock(
FunctionId
functionId, LogMessage logMessage, CancellationToken token)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Log\Logger.LogBlock.cs (3)
19
private static IDisposable CreateLogBlock(
FunctionId
functionId, LogMessage message, int blockId, CancellationToken cancellationToken)
40
private
FunctionId
_functionId;
44
public void Construct(ILogger logger,
FunctionId
functionId, LogMessage logMessage, int blockId, CancellationToken cancellationToken)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.Serialization.cs (1)
30
Logger.Log(
FunctionId
.BKTree_ExceptionInCacheRead);