Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function __combineNodeId(parentNodeId, name) {
let nodeId = null;
if (parentNodeId.identifierType === NodeId.NodeIdType.STRING) {
const childName = parentNodeId.value + UANamespace.nodeIdNameSeparator + name.toString();
nodeId = new NodeId(NodeId.NodeIdType.STRING, childName, parentNodeId.namespace);
}
return nodeId;
}
function __combineNodeId(parentNodeId, name) {
let nodeId = null;
if (parentNodeId.identifierType === NodeId.NodeIdType.STRING) {
const childName = parentNodeId.value + UANamespace.nodeIdNameSeparator + name.toString();
nodeId = new NodeId(NodeId.NodeIdType.STRING, childName, parentNodeId.namespace);
}
return nodeId;
}
function __combineNodeId(parentNodeId: NodeId, name: string) {
let nodeId = null;
if (parentNodeId.identifierType === NodeId.NodeIdType.STRING) {
const childName = parentNodeId.value + NamespaceOptions.nodeIdNameSeparator + name.toString();
nodeId = new NodeId(NodeId.NodeIdType.STRING, childName, parentNodeId.namespace);
}
return nodeId;
}