You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -62,9 +62,14 @@ type ParseAnnotationCommentsOptions = {
62
62
}
63
63
```
64
64
65
-
Its return value is an array of `AnnotationComment` objects:
65
+
Its return value is an object that contains both all parsed annotation comments and any error messages that occurred during parsing:
66
66
67
67
```ts
68
+
exporttypeParseAnnotationCommentsResult= {
69
+
annotationComments:AnnotationComment[]
70
+
errorMessages:string[]
71
+
}
72
+
68
73
typeAnnotationComment= {
69
74
tag:AnnotationTag
70
75
contents:string[]
@@ -95,6 +100,9 @@ export type SourceLocation = {
95
100
96
101
### cleanCode()
97
102
103
+
> **Warning**
104
+
> This function is not implemented yet.
105
+
98
106
This function prepares annotated code lines for display or copying to the clipboard by making it look like regular (non-annotated) code again.
99
107
100
108
It will collect all necessary edits and apply them to the code in reverse order (from the last edit location to the first) to avoid having to update the locations of all remaining annotations after each edit.
0 commit comments