From e914d9d9aade8cda504549385e1d9b6a4c0babb8 Mon Sep 17 00:00:00 2001 From: Basile Burg Date: Tue, 6 Dec 2016 07:59:14 +0100 Subject: [PATCH] halstead & symlist, activate postblit visit --- dastworx/src/halstead.d | 5 ++--- dastworx/src/symlist.d | 3 +-- etc/libdparse | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dastworx/src/halstead.d b/dastworx/src/halstead.d index 143ff488..2cfa9a28 100644 --- a/dastworx/src/halstead.d +++ b/dastworx/src/halstead.d @@ -208,13 +208,12 @@ private final class HalsteadMetric: ASTVisitor endFunction("dtorL" ~ to!string(sc.line), sc.line); } - //TODO-clibdparse: Postblit needs position and line and column - /*override void visit(const(Postblit) pb) + override void visit(const(Postblit) pb) { beginFunction; pb.accept(this); endFunction("postblit" ~ to!string(pb.line), pb.line); - }*/ + } override void visit(const(PrimaryExpression) primary) { diff --git a/dastworx/src/symlist.d b/dastworx/src/symlist.d index bce64bc8..7902d240 100644 --- a/dastworx/src/symlist.d +++ b/dastworx/src/symlist.d @@ -299,8 +299,7 @@ class SymbolListBuilder(ListFmt Fmt): ASTVisitor final override void visit(const Postblit pb) { - //TODO: activate PostBlit visit. - //otherVisitorImpl(pb, SymbolType._function, "postblit", pb.line, pb.column); + otherVisitorImpl(pb, SymbolType._function, "postblit", pb.line, pb.column); pb.accept(this); } diff --git a/etc/libdparse b/etc/libdparse index eea9a95c..c5fe287c 160000 --- a/etc/libdparse +++ b/etc/libdparse @@ -1 +1 @@ -Subproject commit eea9a95cbbf97b66111d8d3562131e5e0c6fa209 +Subproject commit c5fe287cbf672d3710ea62893851a175c3e7f9d3