From ae076c853a09e00f0cf7e882fc3bef047c0ade98 Mon Sep 17 00:00:00 2001 From: lindexi Date: Sat, 21 Oct 2023 21:46:53 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=A0=BC=E5=BC=8F=E5=8C=96=E5=8E=BB?= =?UTF-8?q?=E6=8E=89=E5=91=BD=E5=90=8D=E7=A9=BA=E9=97=B4=EF=BC=8C=E6=96=B9?= =?UTF-8?q?=E4=BE=BF=E5=86=99=E5=8D=9A=E5=AE=A2"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 63c7a555df23c787713460730aab8b5a8db3d00d. --- .../TelescopeSourceGeneratorDemo/Program.cs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/src/TelescopeSourceGenerator/Demo/TelescopeSourceGeneratorDemo/Program.cs b/src/TelescopeSourceGenerator/Demo/TelescopeSourceGeneratorDemo/Program.cs index de23c81..d854660 100644 --- a/src/TelescopeSourceGenerator/Demo/TelescopeSourceGeneratorDemo/Program.cs +++ b/src/TelescopeSourceGenerator/Demo/TelescopeSourceGeneratorDemo/Program.cs @@ -23,28 +23,14 @@ static void Main(string[] args) Console.WriteLine(exportedTypeMetadata.RealType.FullName); } } + + [dotnetCampus.Telescope.TelescopeExportAttribute()] private static partial IEnumerable<(Type type, FooAttribute attribute, Func creator)> ExportFooEnumerable(); [dotnetCampus.Telescope.TelescopeExportAttribute(IncludeReferences = true)] private partial IEnumerable<(Type, Func xxx)> ExportF1Enumerable(); } -internal partial class Program -{ - private static partial IEnumerable<(Type type, FooAttribute attribute, Func creator)> ExportFooEnumerable() - { - yield return (typeof(F1), new FooAttribute() - { - - }, () => new F1()); - yield return (typeof(F2), - new FooAttribute() - { - - }, () => new F2()); - } -} - [F1] public class CurrentFoo : DemoLib1.F1 {