Documentation
¶
Overview ¶
Package ScriptLanguageExtension provides methods for working with ScriptLanguageExtension object instances.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Advanced ¶
type Advanced = class
Advanced exposes a 1:1 low-level instance of the class, undocumented, for those who know what they are doing.
type CodeCompletionKind ¶
type CodeCompletionKind = gdclass.ScriptLanguageExtensionCodeCompletionKind //gd:ScriptLanguageExtension.CodeCompletionKind
const ( CodeCompletionKindClass CodeCompletionKind = 0 CodeCompletionKindFunction CodeCompletionKind = 1 CodeCompletionKindSignal CodeCompletionKind = 2 CodeCompletionKindVariable CodeCompletionKind = 3 CodeCompletionKindMember CodeCompletionKind = 4 CodeCompletionKindEnum CodeCompletionKind = 5 CodeCompletionKindConstant CodeCompletionKind = 6 CodeCompletionKindNodePath CodeCompletionKind = 7 CodeCompletionKindFilePath CodeCompletionKind = 8 CodeCompletionKindPlainText CodeCompletionKind = 9 CodeCompletionKindMax CodeCompletionKind = 10 )
type CodeCompletionLocation ¶
type CodeCompletionLocation = gdclass.ScriptLanguageExtensionCodeCompletionLocation //gd:ScriptLanguageExtension.CodeCompletionLocation
const ( /*The option is local to the location of the code completion query - e.g. a local variable. Subsequent value of location represent options from the outer class, the exact value represent how far they are (in terms of inner classes).*/ LocationLocal CodeCompletionLocation = 0 /*The option is from the containing class or a parent class, relative to the location of the code completion query. Perform a bitwise OR with the class depth (e.g. [code]0[/code] for the local class, [code]1[/code] for the parent, [code]2[/code] for the grandparent, etc.) to store the depth of an option in the class or a parent class.*/ LocationParentMask CodeCompletionLocation = 256 /*The option is from user code which is not local and not in a derived class (e.g. Autoload Singletons).*/ LocationOtherUserCode CodeCompletionLocation = 512 /*The option is from other engine code, not covered by the other enum constants - e.g. built-in classes.*/ LocationOther CodeCompletionLocation = 1024 )
type Implementation ¶
type Implementation = implementation
Implementation implements Interface with empty methods.
type Instance ¶
type Instance [1]gdclass.ScriptLanguageExtension
var Nil Instance
Nil is a nil/null instance of the class. Equivalent to the zero value.
func (Instance) AsScriptLanguage ¶
func (self Instance) AsScriptLanguage() ScriptLanguage.Instance
func (Instance) AsScriptLanguageExtension ¶
func (*Instance) UnsafePointer ¶
type Interface ¶
type Interface interface { GetName() string Init() GetType() string GetExtension() string Finish() GetReservedWords() []string IsControlFlowKeyword(keyword string) bool GetCommentDelimiters() []string GetDocCommentDelimiters() []string GetStringDelimiters() []string MakeTemplate(template string, class_name string, base_class_name string) [1]gdclass.Script GetBuiltInTemplates(obj string) []map[any]any IsUsingTemplates() bool Validate(script string, path string, validate_functions bool, validate_errors bool, validate_warnings bool, validate_safe_lines bool) map[any]any ValidatePath(path string) string CreateScript() Object.Instance HasNamedClasses() bool SupportsBuiltinMode() bool SupportsDocumentation() bool CanInheritFromFile() bool //Returns the line where the function is defined in the code, or [code]-1[/code] if the function is not present. FindFunction(function string, code string) int MakeFunction(class_name string, function_name string, function_args []string) string CanMakeFunction() bool OpenInExternalEditor(script [1]gdclass.Script, line int, column int) error OverridesExternalEditor() bool PreferredFileNameCasing() gdclass.ScriptLanguageScriptNameCasing CompleteCode(code string, path string, owner Object.Instance) map[any]any LookupCode(code string, symbol string, path string, owner Object.Instance) map[any]any AutoIndentCode(code string, from_line int, to_line int) string AddGlobalConstant(name string, value any) AddNamedGlobalConstant(name string, value any) RemoveNamedGlobalConstant(name string) ThreadEnter() ThreadExit() DebugGetError() string DebugGetStackLevelCount() int DebugGetStackLevelLine(level int) int DebugGetStackLevelFunction(level int) string //Returns the source associated with a given debug stack position. DebugGetStackLevelSource(level int) string DebugGetStackLevelLocals(level int, max_subitems int, max_depth int) map[any]any DebugGetStackLevelMembers(level int, max_subitems int, max_depth int) map[any]any DebugGetStackLevelInstance(level int) unsafe.Pointer DebugGetGlobals(max_subitems int, max_depth int) map[any]any DebugParseStackLevelExpression(level int, expression string, max_subitems int, max_depth int) string DebugGetCurrentStackInfo() []map[any]any ReloadAllScripts() ReloadToolScript(script [1]gdclass.Script, soft_reload bool) GetRecognizedExtensions() []string GetPublicFunctions() []map[any]any GetPublicConstants() map[any]any GetPublicAnnotations() []map[any]any ProfilingStart() ProfilingStop() ProfilingSetSaveNativeCalls(enable bool) ProfilingGetAccumulatedData(info_array *ProfilingInfo, info_max int) int ProfilingGetFrameData(info_array *ProfilingInfo, info_max int) int Frame() HandlesGlobalClassType(atype string) bool GetGlobalClassName(path string) map[any]any }
type LookupResultType ¶
type LookupResultType = gdclass.ScriptLanguageExtensionLookupResultType //gd:ScriptLanguageExtension.LookupResultType
const ( LookupResultScriptLocation LookupResultType = 0 LookupResultClass LookupResultType = 1 LookupResultClassConstant LookupResultType = 2 LookupResultClassProperty LookupResultType = 3 LookupResultClassMethod LookupResultType = 4 LookupResultClassSignal LookupResultType = 5 LookupResultClassEnum LookupResultType = 6 LookupResultClassTbdGlobalscope LookupResultType = 7 LookupResultClassAnnotation LookupResultType = 8 LookupResultMax LookupResultType = 9 )
type ProfilingInfo ¶
type ProfilingInfo = gd.ScriptLanguageExtensionProfilingInfo
Click to show internal directories.
Click to hide internal directories.