diff options
| author | Adam Izraelevitz | 2020-07-29 20:48:31 -0700 |
|---|---|---|
| committer | GitHub | 2020-07-29 20:48:31 -0700 |
| commit | 164490c8fbf132ca65644d05d6ff8d0d7a3beb20 (patch) | |
| tree | 862750b85dca5b8496c40c24b3a4e5e67c268bd4 /macros/src/main/scala/chisel3 | |
| parent | 8aeb39b9b3755ccd0e3aa600b813ed4220ac72d8 (diff) | |
Improved Chisel Naming via Compiler Plugins + Prefixing (#1448)
Added prefixing and a compiler plugin to improve naming. Only works for Scala 2.12 and above.
Co-authored-by: Jack Koenig <koenig@sifive.com>
Diffstat (limited to 'macros/src/main/scala/chisel3')
| -rw-r--r-- | macros/src/main/scala/chisel3/internal/naming/NamingAnnotations.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/macros/src/main/scala/chisel3/internal/naming/NamingAnnotations.scala b/macros/src/main/scala/chisel3/internal/naming/NamingAnnotations.scala index 88baa2b1..d8f2ff40 100644 --- a/macros/src/main/scala/chisel3/internal/naming/NamingAnnotations.scala +++ b/macros/src/main/scala/chisel3/internal/naming/NamingAnnotations.scala @@ -112,7 +112,7 @@ class NamingTransforms(val c: Context) { } } - /** Applies the val name transform to a class body. + /** Applies the val name transform to a class body. * Closes context on top level or return local context to englobing context. * Closing context only makes sense when top level a Module. * A Module is always the naming top level. @@ -128,7 +128,7 @@ class NamingTransforms(val c: Context) { if($globalNamingStack.length == 1){ $contextVar.namePrefix("") } - $globalNamingStack.popReturnContext(this, $contextVar) + $globalNamingStack.popReturnContext(this, $contextVar) """ } |
