Identity of the semantic baseline. Text includes line/token structure; opaque bytes use a separate domain and retain their authored ranges without inventing text tokens.
(&self)
| 940 | /// opaque bytes use a separate domain and retain their authored ranges |
| 941 | /// without inventing text tokens. |
| 942 | pub fn semantic_baseline_id(&self) -> Result<SpanProjectionId> { |
| 943 | if self.content.contains(&0) || std::str::from_utf8(&self.content).is_err() { |
| 944 | return projection_id( |
| 945 | &self.file, |
| 946 | b"opaque", |
| 947 | &self.authored_ranges(0..self.content.len())?, |
| 948 | ); |
| 949 | } |
| 950 | Ok(self.semantic_snapshot()?.id) |
| 951 | } |
| 952 | |
| 953 | /// Derive a portable semantic baseline for validating an edit on a |
| 954 | /// receiving repository. Identical visible authored spans produce the |
no test coverage detected