ScriptingWorkspace class abstract
A workspace represents a collection of files that are likely related (usually part of a single Rive file).
Constructors
Properties
- builtinDefinitions → String
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
autocomplete(
String scriptName, ScriptPosition position) → Future< AutocompleteResult> -
Get possible autocompletion results at
positionin script with namescriptName. -
checkScriptsWithRequires(
) → void -
compile(
String scriptName, {bool failOnErrors = false, bool compileDependencies = false, OptimizationLevel optimizationLevel = OptimizationLevel.medium, DebugLevel debugLevel = DebugLevel.medium}) → Future< CompileResult?> -
Retrieves the bytecode for module named
scriptName. -
compileAndSign(
Iterable< String> scriptNames, Uint8List privateKey, {bool failOnErrors = false, OptimizationLevel optimizationLevel = OptimizationLevel.medium, DebugLevel debugLevel = DebugLevel.medium}) → Future<CompileAndSignResult?> - Retrieves the bytecode for listed modules and signature.
-
completeInsertion(
String scriptName, ScriptPosition position) → InsertionCompletion - Get extra text insertion to be auto-completed at the given position.
-
completeWork(
Completer completer, ScriptingWorkspaceResponseResult response) → void -
dispose(
) → void - Dispose of the workspace, any further calls will not work.
-
findInFiles(
Iterable< String> ? inclusionSet, String query, {bool caseSensitive = false, bool matchWholeWord = false, bool regularExpression = false, bool trim = true}) → Future<FindInFilesResult> -
Searches for
queryin files. IfinclusionSetis provided, only those files are searched, otherwise all non-built-in files are searched. -
format(
String scriptName) → Future< FormatResult> -
Formats module named
scriptName. -
fullProblemReport(
) → Future< List< ScriptProblemResult> > - Get an error report for all the script files in this workspace.
-
getDefinition(
String scriptName, ScriptPosition position) → Future< DefinitionResult> -
Get definition information at
positionin script with namescriptName. -
implementedType(
String scriptName) → Future< ImplementedType?> -
Retrieves the implemented type for module named
scriptName. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
problemReport(
String scriptName) → Future< ScriptProblemResult> -
Get an error report for a script file with identified by
scriptName. -
registerCompleter<
T> (int workId) → Future< T> -
removeScriptSource(
String scriptId) → void -
responseForWork(
int workId) → ScriptingWorkspaceResponseResult -
rowHighlight(
String scriptName, int row) → Uint32List -
Get the highlight data for a single row of
scriptName. -
setScriptSource(
String scriptId, String scriptName, String source, {bool highlight = false}) → Future< HighlightResult> -
Set the
sourcecode for the script withscriptId. Calling this again with the samescriptIdwill overwrite the script. Sethighlightto true if you'd like to have highlighting data computed.scriptNameis the name used to require this script. -
setSystemGeneratedSource(
String scriptName, String prefix, String source) → Future< HighlightResult> -
toString(
) → String -
A string representation of this object.
inherited
-
workReadyCallback(
int workId) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited