Commit 4bfcfe4b by Zachary Snow

module item attrs aren't mapped onto trace statements

parent 0d095e6a
...@@ -689,7 +689,7 @@ NonGenerateModuleItem :: { [ModuleItem] } ...@@ -689,7 +689,7 @@ NonGenerateModuleItem :: { [ModuleItem] }
| NonDeclPackageItem { map MIPackageItem $1 } | NonDeclPackageItem { map MIPackageItem $1 }
| NInputGateKW NInputGates ";" { map (\(a, b, c, d) -> NInputGate $1 a b c d) $2 } | NInputGateKW NInputGates ";" { map (\(a, b, c, d) -> NInputGate $1 a b c d) $2 }
| NOutputGateKW NOutputGates ";" { map (\(a, b, c, d) -> NOutputGate $1 a b c d) $2 } | NOutputGateKW NOutputGates ";" { map (\(a, b, c, d) -> NOutputGate $1 a b c d) $2 }
| AttributeInstance ModuleItem { map (MIAttr $1) $2 } | AttributeInstance ModuleItem { map (addMIAttr $1) $2 }
| AssertionItem { [AssertionItem $1] } | AssertionItem { [AssertionItem $1] }
AssignOption :: { AssignOption } AssignOption :: { AssignOption }
...@@ -1469,4 +1469,8 @@ rangeAsExpr :: ExprOrRange -> Expr ...@@ -1469,4 +1469,8 @@ rangeAsExpr :: ExprOrRange -> Expr
rangeAsExpr (Left e) = e rangeAsExpr (Left e) = e
rangeAsExpr (Right r) = Range Nil NonIndexed r rangeAsExpr (Right r) = Range Nil NonIndexed r
addMIAttr :: Attr -> ModuleItem -> ModuleItem
addMIAttr _ (item @ (MIPackageItem (Decl CommentDecl{}))) = item
addMIAttr attr item = MIAttr attr item
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment