Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
CompletionSuggestionKind.java
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019, the Dart project authors. Please see the AUTHORS file
3 * for details. All rights reserved. Use of this source code is governed by a
4 * BSD-style license that can be found in the LICENSE file.
5 *
6 * This file has been automatically generated. Please do not edit it manually.
7 * To regenerate the file, use the script "pkg/analysis_server/tool/spec/generate_files".
8 */
9package org.dartlang.analysis.server.protocol;
10
11/**
12 * An enumeration of the kinds of elements that can be included in a completion suggestion.
13 *
14 * @coverage dart.server.generated.types
15 */
17
18 /**
19 * A list of arguments for the method or function that is being invoked. For this suggestion kind,
20 * the completion field is a textual representation of the invocation and the parameterNames,
21 * parameterTypes, and requiredParameterCount attributes are defined.
22 */
23 public static final String ARGUMENT_LIST = "ARGUMENT_LIST";
24
25 public static final String IMPORT = "IMPORT";
26
27 /**
28 * The element identifier should be inserted at the completion location. For example "someMethod"
29 * in import 'myLib.dart' show someMethod;. For suggestions of this kind, the element attribute is
30 * defined and the completion field is the element's identifier.
31 */
32 public static final String IDENTIFIER = "IDENTIFIER";
33
34 /**
35 * The element is being invoked at the completion location. For example, 'someMethod' in
36 * x.someMethod();. For suggestions of this kind, the element attribute is defined and the
37 * completion field is the element's identifier.
38 */
39 public static final String INVOCATION = "INVOCATION";
40
41 /**
42 * A keyword is being suggested. For suggestions of this kind, the completion is the keyword.
43 */
44 public static final String KEYWORD = "KEYWORD";
45
46 /**
47 * A named argument for the current call site is being suggested. For suggestions of this kind, the
48 * completion is the named argument identifier including a trailing ':' and a space.
49 */
50 public static final String NAMED_ARGUMENT = "NAMED_ARGUMENT";
51
52 public static final String OPTIONAL_ARGUMENT = "OPTIONAL_ARGUMENT";
53
54 /**
55 * An overriding implementation of a class member is being suggested.
56 */
57 public static final String OVERRIDE = "OVERRIDE";
58
59 public static final String PARAMETER = "PARAMETER";
60
61 /**
62 * The name of a pub package is being suggested.
63 */
64 public static final String PACKAGE_NAME = "PACKAGE_NAME";
65
66}