private void ReadLineNumberAndPosition() { var node = new BamlLineNumberAndPosition(); node.LineNumber = _accessor.ReadInt32(); node.LineOffset = _accessor.ReadInt32(); AddNode(node); }
private void WriteLineNumberAndPosition(BamlLineNumberAndPosition node) { _blob.Write(ref _pos, (byte)RecordType.LineNumberAndPosition); _blob.Write(ref _pos, (int)node.LineNumber); _blob.Write(ref _pos, (int)node.LineOffset); }