From 6d5f005f6e4052bdc9a65761d6e2bd9af9e2004a Mon Sep 17 00:00:00 2001 From: CaiHQ Date: Mon, 24 Jul 2023 11:35:51 +0800 Subject: [PATCH] optimize dependent function parse support merge importNodes --- build.gradle | 2 +- .../bdware/sc/visitor/FunctionDependencyVisitor.java | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/build.gradle b/build.gradle index 8190ee4..da05bab 100644 --- a/build.gradle +++ b/build.gradle @@ -51,7 +51,7 @@ dependencies { //api 'org.apache.velocity:velocity-engine-core:2.3' api 'org.rocksdb:rocksdbjni:7.3.1' testImplementation 'junit:junit:4.13.2' - implementation 'org.bdware.doip:doip-sdk:1.4.6' + implementation 'org.bdware.doip:doip-sdk:1.4.9' } group = "org.bdware.sc" diff --git a/src/main/base/org/bdware/sc/visitor/FunctionDependencyVisitor.java b/src/main/base/org/bdware/sc/visitor/FunctionDependencyVisitor.java index 6965dd4..a0632d9 100644 --- a/src/main/base/org/bdware/sc/visitor/FunctionDependencyVisitor.java +++ b/src/main/base/org/bdware/sc/visitor/FunctionDependencyVisitor.java @@ -23,17 +23,17 @@ public class FunctionDependencyVisitor extends YJSParserBaseVisitor singleExpress = ctx.arguments().singleExpression(); if (singleExpress != null && singleExpress.size() > 0) { for (YJSParser.SingleExpressionContext sin : singleExpress) { funText = sin.getText(); - if (cn.getFunction(funText)!=null) + if (cn.getFunction(funText) != null) fn.addDependentFunctions(funText); } }