Documentation
¶
Index ¶
- type WrenLanguageService
- func (ls WrenLanguageService) ExtractPrelude(mainFileCode string) string
- func (ls WrenLanguageService) GetExportDeclarations(line string) []string
- func (ls WrenLanguageService) GetImportData(line string) (compiler.ImportData, error)
- func (ls WrenLanguageService) GetMacroArgs(line string) []string
- func (ls WrenLanguageService) GetMacroStringDeclaration(line string) (string, string, error)
- func (ls WrenLanguageService) GetMacroType(line string) compiler.MacroType
- func (ls WrenLanguageService) IsExportDeclaration(line string) bool
- func (ls WrenLanguageService) IsLineImport(line string) bool
- func (ls WrenLanguageService) IsLineMacro(line string) bool
- func (ls WrenLanguageService) StripUnimportant(line string) string
- func (ls WrenLanguageService) SubstituteDefines(line string, defines map[string]string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WrenLanguageService ¶
type WrenLanguageService struct { }
func (WrenLanguageService) ExtractPrelude ¶
func (ls WrenLanguageService) ExtractPrelude(mainFileCode string) string
func (WrenLanguageService) GetExportDeclarations ¶
func (ls WrenLanguageService) GetExportDeclarations(line string) []string
func (WrenLanguageService) GetImportData ¶
func (ls WrenLanguageService) GetImportData(line string) (compiler.ImportData, error)
GetImportData will extract a slice of imported symbols and the relative path to the file that is being imported given a line of code with an import statement
func (WrenLanguageService) GetMacroArgs ¶
func (ls WrenLanguageService) GetMacroArgs(line string) []string
func (WrenLanguageService) GetMacroStringDeclaration ¶
func (ls WrenLanguageService) GetMacroStringDeclaration(line string) (string, string, error)
func (WrenLanguageService) GetMacroType ¶
func (ls WrenLanguageService) GetMacroType(line string) compiler.MacroType
func (WrenLanguageService) IsExportDeclaration ¶
func (ls WrenLanguageService) IsExportDeclaration(line string) bool
func (WrenLanguageService) IsLineImport ¶
func (ls WrenLanguageService) IsLineImport(line string) bool
func (WrenLanguageService) IsLineMacro ¶
func (ls WrenLanguageService) IsLineMacro(line string) bool
func (WrenLanguageService) StripUnimportant ¶
func (ls WrenLanguageService) StripUnimportant(line string) string
func (WrenLanguageService) SubstituteDefines ¶
func (ls WrenLanguageService) SubstituteDefines(line string, defines map[string]string) string
Click to show internal directories.
Click to hide internal directories.