Skip to content

Commit

Permalink
Fix TypeScript target.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaby76 committed Jul 22, 2023
1 parent 2f85042 commit 80d840a
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions cpp/TypeScript/CPP14ParserBase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,8 @@ export default abstract class CPP14ParserBase extends Parser {
var p = c2.children[1] as ParserRuleContext;
if (p == undefined)
return false;
// console.log("P " + p);
// var q = p.constructor === ParametersAndQualifiersContext;
var q = p instanceof ParametersAndQualifiersContext;
// console.log("Q " + q);
return true;
var r = p.constructor.name === "ParametersAndQualifiersContext";
return r;
} catch (e) {
}
return false;
Expand Down

0 comments on commit 80d840a

Please sign in to comment.