| File: Compiler\SingleFileCompilationModuleGroup.cs | Web Access |
| Project: src\runtime\src\coreclr\tools\aot\ILCompiler.Compiler\ILCompiler.Compiler.csproj (ILCompiler.Compiler) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. using System.Diagnostics; using Internal.TypeSystem; namespace ILCompiler { public class SingleFileCompilationModuleGroup : CompilationModuleGroup { public override bool ContainsType(TypeDesc type) { return true; } public override bool ContainsTypeDictionary(TypeDesc type) { return true; } public override bool ContainsMethodBody(MethodDesc method, bool unboxingStub) { return true; } public override bool ContainsMethodDictionary(MethodDesc method) { Debug.Assert(method.GetCanonMethodTarget(CanonicalFormKind.Specific) != method); return ContainsMethodBody(method, false); } public override bool ImportsMethod(MethodDesc method, bool unboxingStub) { return false; } public override bool IsSingleFileCompilation { get { return true; } } public override bool ShouldProduceFullVTable(TypeDesc type) { return false; } public override bool ShouldPromoteToFullType(TypeDesc type) { return false; } public override bool PresenceOfEETypeImpliesAllMethodsOnType(TypeDesc type) { return false; } public override bool ShouldReferenceThroughImportTable(TypeDesc type) { return false; } public override bool AllowInstanceMethodOptimization(MethodDesc method) { return true; } public override bool AllowVirtualMethodOnAbstractTypeOptimization(MethodDesc method) { return true; } } }