public override void Visit(AmlParser.DefDevice defDevice) { AbsoluteNodePath oldPath = currentPath; Node node = acpiNamespace.LookupNode(defDevice.nameString.nodePath, currentPath); string[] segments = new string[currentPath.NameSegments.Length + defDevice.nameString.nodePath.NameSegments.Length]; int index = 0; foreach (string segment in currentPath.NameSegments) { segments[index++] = segment; } foreach (string segment in defDevice.nameString.nodePath.NameSegments) { segments[index++] = segment; } AbsoluteNodePath devPath = new AbsoluteNodePath(segments); node.Value = new AcpiObject.Device(devPath); currentPath = node.Path; foreach (AmlObject amlObject in defDevice.amlObjectList) { amlObject.Accept(this); } currentPath = oldPath; }
public override void Visit(AmlParser.DefDevice defDevice) { AbsoluteNodePath oldPath = currentPath; Node node = acpiNamespace.CreateNodeAt(defDevice.nameString.nodePath, currentPath); currentPath = node.Path; foreach (AmlObject amlObject in defDevice.amlObjectList) { amlObject.Accept(this); } currentPath = oldPath; }
public virtual void Visit(AmlParser.DefDevice defDevice) { UnhandledNodeType("DefDevice"); }