| 86 | ) |
| 87 | |
| 88 | def _to_core_struct(self) -> core.BNLineFormatterSettings: |
| 89 | result = core.BNLineFormatterSettings() |
| 90 | result.highLevelIL = self.hlil.handle |
| 91 | result.desiredLineLength = self.desired_line_length |
| 92 | result.minimumContentLength = self.minimum_content_length |
| 93 | result.tabWidth = self.tab_width |
| 94 | result.languageName = self.language_name if self.language_name is not None else "" |
| 95 | result.commentStartString = self.comment_start_string |
| 96 | result.commentEndString = self.comment_end_string |
| 97 | result.annotationStartString = self.annotation_start_string |
| 98 | result.annotationEndString = self.annotation_end_string |
| 99 | return result |
| 100 | |
| 101 | |
| 102 | class _LineFormatterMetaClass(type): |