(p *project.Project)
| 511 | } |
| 512 | |
| 513 | func NewProjectResponse(p *project.Project) *ProjectResponse { |
| 514 | if p == nil || p.CommandLine == nil { |
| 515 | panic("NewProjectResponse called with unloaded project") |
| 516 | } |
| 517 | return &ProjectResponse{ |
| 518 | Id: ProjectHandle(p), |
| 519 | ConfigFileName: p.Name(), |
| 520 | RootFiles: p.CommandLine.FileNames(), |
| 521 | CompilerOptions: p.CommandLine.CompilerOptions(), |
| 522 | } |
| 523 | } |
| 524 | |
| 525 | type GetSymbolAtPositionParams struct { |
| 526 | Snapshot SnapshotID `json:"snapshot"` |
no test coverage detected