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 ¶
- func AnalyzeAttributeDiagnosticsForTest(ctx types.ServerContext, doc types.Document) ([]protocol.Diagnostic, error)
- func AnalyzeAttributeValueDiagnosticsForTest(ctx types.ServerContext, doc types.Document) []protocol.Diagnostic
- func AnalyzeTagNameDiagnosticsForTest(ctx types.ServerContext, doc types.Document) []protocol.Diagnostic
- func ParseScriptImportsForTest(content string, ctx types.ServerContext, doc types.Document) []string
- func ParseTypeScriptImportsDebugForTest(content string, ctx types.ServerContext) ([]string, []string)
- func ParseTypeScriptImportsForTest(content string, ctx types.ServerContext) []string
- func PublishDiagnostics(ctx types.ServerContext, glspContext *glsp.Context, uri string) error
- type AttributeMatch
- type SlotMatch
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 ¶
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