public AmlParser.ParseSuccess Parse(AcpiNamespace acpiNamespace, AcpiNamespace.AbsoluteNodePath initialNodePath) { int offset = 0; TermObj[] termList; if (new AmlParser(new ByteBufferAmlStreamAdapter(unparsedTermList), acpiNamespace, initialNodePath). ParseTermList(out termList, ref offset, unparsedTermList.Length) == AmlParser.ParseSuccess.Failure) { return(AmlParser.ParseSuccess.Failure); } Debug.Assert(offset == unparsedTermList.Length, "offset == unparsedTermList.Length"); AmlToStackIRVisitor amlToStackIRVisitor = new AmlToStackIRVisitor(); amlToStackIRVisitor.VisitSequence(termList); body = amlToStackIRVisitor.Result; return(AmlParser.ParseSuccess.Success); }
public Device(AcpiNamespace.AbsoluteNodePath path) { this.path = path; }
public NodePathReference(AcpiNamespace acpiNamespace, AcpiNamespace.AbsoluteNodePath nodePath) { this.acpiNamespace = acpiNamespace; this.nodePath = nodePath; }