> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.compiler/yarn.compiler.indentawarelexer/yarn.compiler.indentawarelexer.lexerwarning.md).

# LexerWarning

Struct in [IndentAwareLexer](/3.1/api/csharp/yarn.compiler/yarn.compiler.indentawarelexer.md)

Inherits from `System.ValueType`

## Summary

A warning emitted during lexing.

```csharp
public struct LexerWarning
```

## Fields

| Name                                                                                                                                                                       | Description                              |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------- |
| [Message](/3.1/api/csharp/yarn.compiler/yarn.compiler.indentawarelexer/yarn.compiler.indentawarelexer.lexerwarning/yarn.compiler.indentawarelexer.lexerwarning.message.md) | The message associated with the warning. |
| [Token](/3.1/api/csharp/yarn.compiler/yarn.compiler.indentawarelexer/yarn.compiler.indentawarelexer.lexerwarning/yarn.compiler.indentawarelexer.lexerwarning.token.md)     | The token associated with the warning.   |
