# Editor.ShaderUpgrade.FirstLine

```csharp
static string FirstLine(string text)
```

A compile error's gist: its first line, and the line naming what it's about (Slang puts that under the source line).

### Parameters

- `text` (`string`)

### Returns

`string`

Declared in [Editor.ShaderUpgrade](/api/Editor.ShaderUpgrade).
Assembly: `Sandbox.Tools`.
