Changes between Initial Version and Version 1 of Ticket #9699, comment 2


Ignore:
Timestamp:
Jun 20, 2015 9:38:38 AM (4 years ago)
Author:
spinda
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #9699, comment 2

    initial v1  
    99(4) Add {{{nestedNames :: Q [Name]}}} (in need of a better name) producing a list of the non-top-level (nested) names visible to {{{reify}}} in this context.
    1010
    11 (5) Add {{{parentNames :: Q [Name]}}} (also in need of a better name) producing a list of the names immediately associated with the current splicing context, if available. For example, {{{foo, bar :: $(typeSplice)}}} would see {{{foo}}} and {{{bar}}}, {{{foo = $(exprSplice)}}} would see {{{foo}}}, and {{{$(topLevelDecSplice)}}} would see {{{[]}}}.
     11(5) Add {{{parentNames :: Q [Name]}}} (also in need of a better name) producing a list of the names immediately associated with the current splicing context, if available. For example, {{{foo, bar :: $(typeSplice)}}} would see {{{[foo, bar]}}}, {{{foo = $(exprSplice)}}} would see {{{[foo]}}}, and {{{$(topLevelDecSplice)}}} would see {{{[]}}}.
    1212
    1313(6) ''Optional'' Add {{{isTopLevel :: Name -> Q Bool}}} to detect whether a name is bound at the top level (of the current module?). Something like this could alternately be accomplished by searching through {{{topLevelNames}}}.