SnippetContext
Context for expanding class@SnippetChunk.
This class is currently used primary as a hashtable. However, the longer term goal is to have it hold onto a GjsContext
as well as other languages so that class@SnippetChunk can expand themselves by executing script within the context.
The class@Snippet will build the context and then expand each of the chunks during the insertion/edit phase.
Constructors
Functions
Removes all variables from the context.
Emits the "changed" signal. See onChanged.
Gets the current value for a variable named @key.
The signal is emitted when a change has been discovered in one of the chunks of the snippet which has caused a variable or other dynamic data within the context to have changed.
Sets a constatnt within the context.
Sets a variable within the context.