8000 c.freshName => c.fresh by xeno-by · Pull Request #160 · scala/docs.scala-lang · GitHub
[go: up one dir, main page]

Skip to content
10000

c.freshName => c.fresh #160

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 14, 2013
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
c.freshName => c.fresh
  • Loading branch information
xeno-by committed Jan 14, 2013
commit 0d4fb57aa85bb5c0919146e585832c85eff8797c
4 changes: 2 additions & 2 deletions overviews/macros/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Note the call to `reify`, which provides a shortcut for creating ASTs.

val evals = ListBuffer[ValDef]()
def precompute(value: Tree, tpe: Type): Ident = {
val freshName = newTermName(c.freshName("eval$"))
val freshName = newTermName(c.fresh("eval$"))
evals += ValDef(Modifiers(), freshName, TypeTree(tpe), value)
Ident(freshName)
}
Expand Down Expand Up @@ -167,7 +167,7 @@ To follow the example, create an empty directory and copy the code to a new file

val evals = ListBuffer[ValDef]()
def precompute(value: Tree, tpe: Type): Ident = {
val freshName = newTermName(c.freshName("eval$"))
val freshName = newTermName(c.fresh("eval$"))
evals += ValDef(Modifiers(), freshName, TypeTree(tpe), value)
Ident(freshName)
}
Expand Down
0