parent
2b8f0a7971
commit
7d7886b729
1 changed files with 8 additions and 23 deletions
|
|
@ -372,21 +372,6 @@ template getPContext(): untyped =
|
||||||
when c is PContext: c
|
when c is PContext: c
|
||||||
else: c.c
|
else: c.c
|
||||||
|
|
||||||
when defined(nimfind):
|
|
||||||
template onUse*(info: TLineInfo; s: PSym) =
|
|
||||||
let c = getPContext()
|
|
||||||
if c.graph.onUsage != nil: c.graph.onUsage(c.graph, s, info)
|
|
||||||
|
|
||||||
template onDef*(info: TLineInfo; s: PSym) =
|
|
||||||
let c = getPContext()
|
|
||||||
if c.graph.onDefinition != nil: c.graph.onDefinition(c.graph, s, info)
|
|
||||||
|
|
||||||
template onDefResolveForward*(info: TLineInfo; s: PSym) =
|
|
||||||
let c = getPContext()
|
|
||||||
if c.graph.onDefinitionResolveForward != nil:
|
|
||||||
c.graph.onDefinitionResolveForward(c.graph, s, info)
|
|
||||||
|
|
||||||
else:
|
|
||||||
when defined(nimsuggest):
|
when defined(nimsuggest):
|
||||||
template onUse*(info: TLineInfo; s: PSym) = discard
|
template onUse*(info: TLineInfo; s: PSym) = discard
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue