 
   ## Macro declarations
 
-  declareMacro: (name, macro) ->
+  declareMacro: (name, macro, docs) ->
     name.id = macro.id = @freshId()
+    name.scope = @currentScopeIndex()
+    macro.docs = docs
     addToMap @_scope().macros, name.symbol, macro
 
   isMacroDeclared: (name) ->

callMacroExpand = (ctx, call) ->
  op = _operator call
  op.label = 'keyword'
  macro = ctx.macro op.symbol
  op.id = macro.id
  macro ctx, call

  [maybeType] = rest

  doDeclare = isTypeAnnotation maybeType
  [docs] = partition isComment, rest
  typed = isTypeAnnotation maybeType

  if hasName
    macroName = ctx.definitionName()
