mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 23:15:26 +02:00
22 lines
329 B
Go
22 lines
329 B
Go
package analyzer
|
|
|
|
import (
|
|
"config-lsp/common"
|
|
"config-lsp/handlers/aliases"
|
|
"config-lsp/handlers/aliases/indexes"
|
|
)
|
|
|
|
func analyzeDoubleKeys(
|
|
d *aliases.AliasesDocument,
|
|
) []common.LSPError {
|
|
indexes, errors := indexes.CreateIndexes(*d.Parser)
|
|
|
|
d.Indexes = &indexes
|
|
|
|
if len(errors) > 0 {
|
|
return errors
|
|
}
|
|
|
|
return nil
|
|
}
|