SnippetsComponent.determineSnippetInfo

class SnippetsComponent
determineSnippetInfo
(
scope const(char)[] file
,
scope const(char)[] code
,)

Parameters

file const(char)[]

Filename to resolve dependencies relatively from.

code const(char)[]

Code to complete snippet in.

position int

Byte offset of where to find scope in.

Return Value

a SnippetInfo object for all snippet information.

.loopScope is set if a loop can be inserted at this position, Optionally with information about close ranges. Contains SnippetLoopScope.init if this is not a location where a loop can be inserted.

Meta