languageService

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLanguage

func GetLanguage(language string) *sitter.Language

----------------------------------------------------------------------------- GetLanguage - Returns the language configuration for the specified language. -----------------------------------------------------------------------------

Parameters:

  • language (string): The name of the programming language.

Returns:

  • (*sitter.Language): The language configuration object or nil if unsupported.

-----------------------------------------------------------------------------

func ParseContent

func ParseContent(content []byte, language string) *sitter.Tree

----------------------------------------------------------------------------- ParseContent - Parses the given content based on the specified programming language. -----------------------------------------------------------------------------

Parameters:

  • content ([]byte): The content to be parsed.
  • language (string): The programming language of the content.

Returns:

  • (*sitter.Tree): The parsed syntax tree of the content.

-----------------------------------------------------------------------------

Types

This section is empty.

Jump to

Keyboard shortcuts

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