Ide.CodeIndexer.index_file_async

### Method

# Ide CodeIndexerindex_file_async

#### Declaration

    void
    ide_code_indexer_index_file_async (
      IdeCodeIndexer* self,
      GFile* file,
      const gchar* const* build_flags,
      GCancellable* cancellable,
      GAsyncReadyCallback callback,
      gpointer user_data
    )

#### Description

This function will take index source file and create an array of symbols in `file`. `callback` is called upon completion and must call `ide_code_indexer_index_file_finish()` to complete the operation.

Available since: | 3.32

#### Parameters

`file` | `GFile`
| Source file to index.
| The data is owned by the caller of the function.
`build_flags` | An array of `gchar*`
| Array of build flags to parse `file`.
| The argument can be `NULL`.
| The array must be `NULL`-terminated.
| The data is owned by the caller of the function.
| Each element is a NUL terminated UTF-8 string.
`cancellable` | `GCancellable`
| A `GCancellable`.
| The argument can be `NULL`.
| The data is owned by the caller of the function.
`callback` | `GAsyncReadyCallback`
| A `GAsyncReadyCallback`.
| The argument can be `NULL`.
`user_data` | `gpointer`
| Closure data for `callback`.
| The argument can be `NULL`.
| The data is owned by the caller of the function.