> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/enum/enum.source_code.md).

# Enum.source\_code()

Returns the source code of the enum.

`source_code() → str`

## Query Example

```python
from glider import *

def query():
    contracts = Contracts().exec(1, 95)

    for enum in contracts.enums().exec():
      print(enum.source_code())

    return []
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FqixR93Nc51T3bBInYafy%2FScreenshot%202025-07-25%20at%206.30.39%E2%80%AFPM.png?alt=media&amp;token=09126eb4-ad07-4b38-bb0c-a321c4bfb841" alt=""><figcaption></figcaption></figure>
