DCDExtComponent.extractCallParameters

Extracts calltips help information at a given position. The position must be within the arguments of the function and not outside the parentheses or inside some child call. When generating the call parameters for a function definition, the position must be inside the normal parameters, otherwise the template arguments will be put as normal arguments.

class DCDExtComponent
extractCallParameters
(
scope const(char)[] code
,,
bool definition = false
)

Parameters

code const(char)[]

code to analyze

position int

byte offset where to check for function arguments

definition bool

true if this hints is a function definition (templates don't have an exclamation point '!')

Return Value

the position of significant locations for parameter extraction.

Meta