publishDiagnostics

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 7, 2026 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Overview

Copyright © 2025 Benny Powers <[email protected]>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Copyright © 2025 Benny Powers <[email protected]>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Copyright © 2025 Benny Powers <[email protected]>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Copyright © 2025 Benny Powers <[email protected]>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Copyright © 2025 Benny Powers <[email protected]>

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnalyzeAttributeDiagnosticsForTest

func AnalyzeAttributeDiagnosticsForTest(ctx types.ServerContext, doc types.Document) ([]protocol.Diagnostic, error)

AnalyzeAttributeDiagnosticsForTest is the exported version for testing

func AnalyzeAttributeValueDiagnosticsForTest added in v0.4.4

func AnalyzeAttributeValueDiagnosticsForTest(ctx types.ServerContext, doc types.Document) []protocol.Diagnostic

AnalyzeAttributeValueDiagnosticsForTest is the exported version for testing

func AnalyzeTagNameDiagnosticsForTest

func AnalyzeTagNameDiagnosticsForTest(ctx types.ServerContext, doc types.Document) []protocol.Diagnostic

AnalyzeTagNameDiagnosticsForTest is the exported version for testing

func ParseScriptImportsForTest added in v0.4.5

func ParseScriptImportsForTest(content string, ctx types.ServerContext, doc types.Document) []string

ParseScriptImportsForTest is the exported version for testing

func ParseTypeScriptImportsDebugForTest added in v0.4.5

func ParseTypeScriptImportsDebugForTest(content string, ctx types.ServerContext) ([]string, []string)

ParseTypeScriptImportsDebugForTest is the exported version for testing with debug output

func ParseTypeScriptImportsForTest added in v0.4.5

func ParseTypeScriptImportsForTest(content string, ctx types.ServerContext) []string

ParseTypeScriptImportsForTest is the exported version for testing

func PublishDiagnostics

func PublishDiagnostics(ctx types.ServerContext, glspContext *glsp.Context, uri string) error

PublishDiagnostics analyzes the document and publishes diagnostics

Types

type AttributeMatch

type AttributeMatch struct {
	Name     string
	TagName  string // The tag this attribute belongs to
	Value    string // The attribute value (empty if no value)
	HasValue bool   // Whether attribute has an explicit value
	Line     uint32
	StartCol uint32
	EndCol   uint32
}

AttributeMatch represents a found attribute in the document

type SlotMatch

type SlotMatch struct {
	Value    string
	Range    protocol.Range
	Position int
}

SlotMatch represents a found slot attribute in the document

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL