> ## Documentation Index
> Fetch the complete documentation index at: https://ancplua.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# AL0010 - Type should be partial

> Types that are targets for source generators should be marked as partial

Source: [AL0010PartialTypeAnalyzer.cs](https://github.com/ANcpLua/ANcpLua.Analyzers/blob/main/src/ANcpLua.Analyzers/Analyzers/AL0010PartialTypeAnalyzer.cs)

## Description

Types that are targets for source generators should be marked as partial.

## Bad Code

```csharp theme={null}
public class MyGenerator { }
```

## Good Code

```csharp theme={null}
public partial class MyGenerator { }
```

## Properties

* **Category**: Design
* **Severity**: Info
* **Enabled by default**: False
* **Code fix available**: True

## Configuration

```editorconfig theme={null}
dotnet_diagnostic.AL0010.severity = warning
```
