Files
swift-mirror/test/SourceKit/CodeComplete/Inputs/custom-completion/custom.json
Ben Langmuir 93d22c9ff0 [code-completion] Add a new custom completion context for a for-each sequence
For normal completions it behaves the same as PostfixExprBeginning, but
it provides a hook for clients to provide a custom completion for this
position.  For example, you might want to a x ..< y snippet in this
position.

rdar://problem/29910383
2017-07-19 13:29:36 -07:00

37 lines
822 B
JSON

{
key.request: source.request.codecomplete.setcustom,
key.results: [
{
key.name: "customExpr",
key.kind: myuid.customExpr,
key.context: [source.lang.swift.expr]
},
{
key.name: "customStmt",
key.kind: myuid.customStmt,
key.context: [source.lang.swift.stmt]
},
{
key.name: "customType",
key.kind: myuid.customType,
key.context: [source.lang.swift.type]
},
{
key.name: "customExprOrStmtOrType",
key.kind: myuid.customExprOrStmtOrType,
key.context: [
source.lang.swift.expr,
source.lang.swift.stmt,
source.lang.swift.type
]
},
{
key.name: "customForEach",
key.kind: myuid.customForEach,
key.context: [
source.lang.swift.foreach.sequence,
]
}
]
}