mirror of
https://github.com/GeWuYou/GFramework.git
synced 2026-03-31 18:39:00 +08:00
- 添加了新的诊断规则 GF_ContextGet_007 和 GF_ContextGet_08 - 实现了对静态字段和只读字段的跳过逻辑 - 为 [GetAll] 特性添加了跳过字段的警告提示 - 更新了测试用例验证跳过逻辑的正确性 - 修改了代码生成顺序以确保正确的绑定推断 - 在 README 中添加了关于字段跳过的文档说明
23 lines
963 B
C#
23 lines
963 B
C#
// Copyright (c) 2025 GeWuYou
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
global using System;
|
|
global using System.Collections.Generic;
|
|
global using System.Linq;
|
|
global using System.Threading;
|
|
global using System.Threading.Tasks;
|
|
global using System.Collections.Immutable;
|
|
global using Microsoft.CodeAnalysis;
|
|
global using Microsoft.CodeAnalysis.CSharp.Syntax;
|
|
global using Microsoft.CodeAnalysis.CSharp;
|
|
global using Microsoft.CodeAnalysis.Text; |