Skip to content

Commit

Permalink
Removed commentted code.
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeseng committed Oct 7, 2022
1 parent 89de09f commit ae8581f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
Expand Up @@ -65,8 +65,7 @@ object DiagramsMacro {
def getAnchor(expr: Term): Expr[Int] = {
// -1 to match scala2 position
// Expr((expr.asTerm.pos.endColumn + expr.asTerm.pos.startColumn - 1) / 2 - Position.ofMacroExpansion.startColumn)
//val line = expr.pos.sourceCode.getOrElse("").split('\n').apply(expr.pos.startLine - 1)
Expr(expr.pos.startColumn - Position.ofMacroExpansion.startColumn)// - adjustment
Expr(expr.pos.startColumn - Position.ofMacroExpansion.startColumn)
}

def handleArgs(argTps: List[TypeRepr], args: List[Term]): (List[Term], List[Term]) =
Expand Down
Expand Up @@ -50,10 +50,6 @@ private[diagrams] class DiagrammedExprMacro[C <: Context](val context: C) {
val c = line.charAt(anchor)
if (c == '<') 0 else 1
}
//val p = getPosition(expr)
//val line = p.source.lineToString(p.line - 1)
//val anchor = getAnchor(x)
//val c = line.charAt(anchor)
anchor - adjustment
case Apply(x, ys) => getAnchor(x) + 0
case TypeApply(x, ys) => ;getAnchor(x) + 0
Expand Down

0 comments on commit ae8581f

Please sign in to comment.