/
githubmirror
/
roslyn
Обзор
Документация
Войти
/
githubmirror
/
roslyn
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/Compilers/Test/Core/Mocks/TestMessageProvider.cs
492 строки
14 KB
Tomáš Matoušek
EnC: Block additions to MethodImpl table when targeting .NET Framework (#81304)
03 дек 2025, 23:18
Не верифицирован
03 дек 2025, 23:18
264f04f
Код
Авторство
О чём код?
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. #nullable disable using System; using System.Globalization; using Microsoft.CodeAnalysis; using Microsoft.CodeAnalysis.Text; namespace Roslyn.Test.Utilities { internal abstract class TestMessageProvider : CommonMessageProvider { public override Type ErrorCodeType { get { throw new NotImplementedException(); } } public override Diagnostic CreateDiagnostic(int code, Location location, params object[] args) { throw new NotImplementedException(); } public override Diagnostic CreateDiagnostic(DiagnosticInfo info) { throw new NotImplementedException(); } public override string GetMessagePrefix(string id, DiagnosticSeverity severity, bool isWarningAsError, CultureInfo culture) { throw new NotImplementedException(); } public override ReportDiagnostic GetDiagnosticReport(DiagnosticInfo diagnosticInfo, CompilationOptions options) { throw new NotImplementedException(); } public override int ERR_EncodinglessSyntaxTree { get { throw new NotImplementedException(); } } public override int ERR_InvalidPathMap { get { throw new NotImplementedException(); } } public override int ERR_FailedToCreateTempFile { get { throw new NotImplementedException(); } } public override int ERR_MultipleAnalyzerConfigsInSameDir => throw new NotImplementedException(); public override int ERR_ExpectedSingleScript { get { throw new NotImplementedException(); } } public override int ERR_OpenResponseFile { get { throw new NotImplementedException(); } } public override int FTL_InvalidInputFileName { get { throw new NotImplementedException(); } } public override int ERR_FileNotFound { get { throw new NotImplementedException(); } } public override int ERR_NoSourceFile { get { throw new NotImplementedException(); } } public override int ERR_CantOpenFileWrite { get { throw new NotImplementedException(); } } public override int ERR_OutputWriteFailed { get { throw new NotImplementedException(); } } public override int WRN_NoConfigNotOnCommandLine { get { throw new NotImplementedException(); } } public override int ERR_BinaryFile { get { throw new NotImplementedException(); } } public override int ERR_MetadataFileNotAssembly { get { throw new NotImplementedException(); } } public override int ERR_MetadataFileNotModule { get { throw new NotImplementedException(); } } public override int ERR_InvalidAssemblyMetadata { get { throw new NotImplementedException(); } } public override int ERR_InvalidModuleMetadata { get { throw new NotImplementedException(); } } public override int ERR_ErrorOpeningAssemblyFile { get { throw new NotImplementedException(); } } public override int ERR_ErrorOpeningModuleFile { get { throw new NotImplementedException(); } } public override int ERR_MetadataFileNotFound { get { throw new NotImplementedException(); } } public override int ERR_MetadataReferencesNotSupported { get { throw new NotImplementedException(); } } public override int ERR_PublicKeyFileFailure { get { throw new NotImplementedException(); } } public override int ERR_PublicKeyContainerFailure { get { throw new NotImplementedException(); } } public override int ERR_OptionMustBeAbsolutePath { get { throw new NotImplementedException(); } } public override int ERR_CantReadResource { get { throw new NotImplementedException(); } } public override int ERR_CantOpenWin32Resource { get { throw new NotImplementedException(); } } public override int ERR_CantOpenWin32Manifest { get { throw new NotImplementedException(); } } public override int ERR_CantOpenWin32Icon { get { throw new NotImplementedException(); } } public override int ERR_BadWin32Resource { get { throw new NotImplementedException(); } } public override int ERR_ErrorBuildingWin32Resource { get { throw new NotImplementedException(); } } public override int ERR_ResourceNotUnique { get { throw new NotImplementedException(); } } public override int ERR_ResourceFileNameNotUnique { get { throw new NotImplementedException(); } } public override int ERR_ResourceInModule { get { throw new NotImplementedException(); } } public override int ERR_PermissionSetAttributeFileReadError { get { throw new NotImplementedException(); } } public override int ERR_MethodImplAttributeAsyncCannotBeUsed { get { throw new NotImplementedException(); } } public override int ERR_PdbWritingFailed { get { throw new NotImplementedException(); } } public override int WRN_PdbUsingNameTooLong { get { throw new NotImplementedException(); } } public override int WRN_PdbLocalNameTooLong { get { throw new NotImplementedException(); } } public override int ERR_MetadataNameTooLong { get { throw new NotImplementedException(); } } public override int WRN_AnalyzerCannotBeCreated { get { throw new NotImplementedException(); } } public override int WRN_NoAnalyzerInAssembly { get { throw new NotImplementedException(); } } public override int WRN_UnableToLoadAnalyzer { get { throw new NotImplementedException(); } } public override int INF_UnableToLoadSomeTypesInAnalyzer { get { throw new NotImplementedException(); } } public override int ERR_CantReadRulesetFile { get { throw new NotImplementedException(); } } public override int ERR_CompileCancelled { get { throw new NotImplementedException(); } } public override void ReportDuplicateMetadataReferenceStrong(DiagnosticBag diagnostics, Location location, MetadataReference reference, AssemblyIdentity identity, MetadataReference equivalentReference, AssemblyIdentity equivalentIdentity) { throw new NotImplementedException(); } public override void ReportDuplicateMetadataReferenceWeak(DiagnosticBag diagnostics, Location location, MetadataReference reference, AssemblyIdentity identity, MetadataReference equivalentReference, AssemblyIdentity equivalentIdentity) { throw new NotImplementedException(); } protected override void ReportInvalidAttributeArgument(DiagnosticBag diagnostics, SyntaxNode attributeSyntax, int parameterIndex, AttributeData attribute) { throw new NotImplementedException(); } protected override void ReportInvalidNamedArgument(DiagnosticBag diagnostics, SyntaxNode attributeSyntax, int namedArgumentIndex, ITypeSymbol attributeClass, string parameterName) { throw new NotImplementedException(); } protected override void ReportParameterNotValidForType(DiagnosticBag diagnostics, SyntaxNode attributeSyntax, int namedArgumentIndex) { throw new NotImplementedException(); } protected override void ReportMarshalUnmanagedTypeNotValidForFields(DiagnosticBag diagnostics, SyntaxNode attributeSyntax, int parameterIndex, string unmanagedTypeName, AttributeData attribute) { throw new NotImplementedException(); } protected override void ReportMarshalUnmanagedTypeOnlyValidForFields(DiagnosticBag diagnostics, SyntaxNode attributeSyntax, int parameterIndex, string unmanagedTypeName, AttributeData attribute) { throw new NotImplementedException(); } protected override void ReportAttributeParameterRequired(DiagnosticBag diagnostics, SyntaxNode attributeSyntax, string parameterName) { throw new NotImplementedException(); } protected override void ReportAttributeParameterRequired(DiagnosticBag diagnostics, SyntaxNode attributeSyntax, string parameterName1, string parameterName2) { throw new NotImplementedException(); } public override DiagnosticSeverity GetSeverity(int code) { throw new NotImplementedException(); } public override string LoadMessage(int code, CultureInfo language) { throw new NotImplementedException(); } public override string CodePrefix { get { throw new NotImplementedException(); } } public override int GetWarningLevel(int code) { throw new NotImplementedException(); } public override int ERR_LinkedNetmoduleMetadataMustProvideFullPEImage { get { throw new NotImplementedException(); } } public override int ERR_InvalidDebugInformationFormat { get { throw new NotImplementedException(); } } public override int ERR_InvalidFileAlignment { get { throw new NotImplementedException(); } } public override int ERR_InvalidSubsystemVersion { get { throw new NotImplementedException(); } } public override int ERR_InvalidInstrumentationKind { get { throw new NotImplementedException(); } } public override int ERR_InvalidOutputName { get { throw new NotImplementedException(); } } public override int ERR_EncReferenceToAddedMember { get { throw new NotImplementedException(); } } public override int ERR_BadCompilationOptionValue { get { throw new NotImplementedException(); } } public override int ERR_MutuallyExclusiveOptions { get { throw new NotImplementedException(); } } public override int ERR_TooManyUserStrings { get { throw new NotImplementedException(); } } public override int ERR_TooManyUserStrings_RestartRequired { get { throw new NotImplementedException(); } } public override int ERR_PeWritingFailure { get { throw new NotImplementedException(); } } public override int ERR_ModuleEmitFailure { get { throw new NotImplementedException(); } } public override int ERR_EncUpdateFailedMissingSymbol { get { throw new NotImplementedException(); } } public override int ERR_BadAssemblyName { get { throw new NotImplementedException(); } } public override int ERR_BadSourceCodeKind { get { throw new NotImplementedException(); } } public override int ERR_BadDocumentationMode { get { throw new NotImplementedException(); } } public override int ERR_InvalidDebugInfo { get { throw new NotImplementedException(); } } public override int ERR_InvalidHashAlgorithmName => throw new NotImplementedException(); public override int WRN_GeneratorFailedDuringGeneration => throw new NotImplementedException(); public override int WRN_GeneratorFailedDuringInitialization => throw new NotImplementedException(); public override int WRN_AnalyzerReferencesFramework => throw new NotImplementedException(); public override int WRN_AnalyzerReferencesNewerCompiler => throw new NotImplementedException(); public override int WRN_DuplicateAnalyzerReference => throw new NotImplementedException(); public override int ERR_FunctionPointerTypesInAttributeNotSupported => throw new NotImplementedException(); public override int ERR_DataSectionStringLiteralHashCollision => throw new NotImplementedException(); public override int? WRN_ByValArraySizeConstRequired => throw new NotImplementedException(); public override int ERR_EncUpdateRequiresEmittingExplicitInterfaceImplementationNotSupportedByTheRuntime => throw new NotImplementedException(); } }