> 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/api/csharp/yarn.compiler/yarn.compiler.indentawarelexer/yarn.compiler.indentawarelexer.lexerwarning.md).

# LexerWarning

Struct in [IndentAwareLexer](/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](/api/csharp/yarn.compiler/yarn.compiler.indentawarelexer/yarn.compiler.indentawarelexer.lexerwarning/yarn.compiler.indentawarelexer.lexerwarning.message.md) | The message associated with the warning. |
| [Token](/api/csharp/yarn.compiler/yarn.compiler.indentawarelexer/yarn.compiler.indentawarelexer.lexerwarning/yarn.compiler.indentawarelexer.lexerwarning.token.md)     | The token associated with the warning.   |
