Skip to content
This repository was archived by the owner on Nov 4, 2024. It is now read-only.

Commit 448c9cc

Browse files
authored
Add support for Python 3.8 fstring debug = (microsoft#1548)
* Add equals specifier, less error testing * Whitespace -> WhiteSpace for consistency * Add error reporting * Cleanups * PR feedback * Use var more consistently
1 parent 1478379 commit 448c9cc

File tree

5 files changed

+181
-70
lines changed

5 files changed

+181
-70
lines changed

src/Core/Impl/Text/StringSpan.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ public struct StringSpan : IEquatable<StringSpan> {
3030
public int End => Start + Length;
3131
public bool IsValid => Source != null && Start >= 0 && Length >= 0 && Source.Length >= End;
3232

33+
public StringSpan(string source) : this(source, 0, source.Length) { }
34+
3335
public StringSpan(string source, int start, int length) {
3436
Source = source;
3537
Start = start;

0 commit comments

Comments
 (0)