Files
2026-08-27 10:56:38 -06:00

28 lines
900 B
C#

using System.Collections.Immutable;
using Microsoft.Cci;
namespace Microsoft.CodeAnalysis.CodeGen;
internal interface ITokenDeferral
{
ArrayMethods ArrayMethods { get; }
uint GetFakeStringTokenForIL(string value);
uint GetFakeSymbolTokenForIL(IReference value, SyntaxNode? syntaxNode, DiagnosticBag diagnostics);
uint GetFakeSymbolTokenForIL(ISignature value, SyntaxNode? syntaxNode, DiagnosticBag diagnostics);
uint GetSourceDocumentIndexForIL(DebugSourceDocument document);
IFieldReference GetFieldForData(ImmutableArray<byte> data, ushort alignment, SyntaxNode syntaxNode, DiagnosticBag diagnostics);
IFieldReference GetArrayCachingFieldForData(ImmutableArray<byte> data, IArrayTypeReference arrayType, SyntaxNode syntaxNode, DiagnosticBag diagnostics);
IMethodReference GetInitArrayHelper();
string GetStringFromToken(uint token);
object GetReferenceFromToken(uint token);
}