Target
Object Hierarchy:
Description:
[ Version ( since = "20.0" ) ]
public interface Target : Object
A target to be built in a project
Content:
Properties:
- public abstract bool building { get; }
Flag set to TRUE if the target's building is a work in progress;
useful to avoid running multiple works
- public abstract TargetConfiguration configuration { get; set; }
Compilation arguments and files required to build the target
- public abstract Container contents { get; }
A list of GVo.NamedString objects, where
its name is the URI of the file and its value is the content of that file.
- public abstract Report diagnostics_report { get; set; }
- public abstract Linter linter { get; set construct; }
Linter used to run diagnostics
- public abstract unowned TargetManager manager { get; set construct; }
Target Manager this target belongs to
- public abstract string name { get; set construct; }
Target's name
- public abstract SymbolProvider symbol_provider { get; set; }
Symbol resolution provider
Static methods:
Methods:
- public abstract void add_file_contents (string uri, string content) throws Error
Add a file's content saving to
contents using file's URI as its name
- public virtual async void add_files_from (string uri) throws Error
Add recursivally all files' contents found in given URI.
- public abstract void add_files_from_sync (string uri) throws Error
Add recursivally all files' contents found in given URI.
- public virtual void apply_changes (DidChangeTextDocumentParams changes)
- public abstract void apply_configuration () throws Error
- public virtual unowned string? file_contents (string uri)
Find a file's content by its uri
- public abstract Container find_namespace_resolvers (string ns)
Find Resolvers providing given namespace and included in
configuration
- public void read_file_contents (string uri) throws Error
Read file contents and save it to
contents
- public virtual void read_gfile_contents (File file) throws Error
Read file contents and save it to
contents
- public virtual bool requires_file (File file)
Checks the file is used to build the target
- public virtual void reset_diagnostics ()
Remove all diagnostics. Call this method after all diagnostics have
been sent to the client.
- public virtual async void run_diagnostics () throws Error
- public abstract void run_diagnostics_sync () throws Error
Executes a diagnostics for all files in the target
- public virtual async void run_linter_diagnostics (File file) throws Error
Executes a linter diagnostics for a given file
- public virtual async void use_file (File file) throws Error
- public virtual void use_file_sync (File file) throws Error
- public abstract void use_namespace (string ns, string? api_version) throws Error
Search for a given namespace and adds all packages it has symbols
defined in, to configuration.
- public abstract void use_package (string pkg) throws Error
Search for a given namespace and adds all its dependencies, including
the ones from a dependency
Signals:
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref