nixd
|
#include <Diagnostic.h>
Public Member Functions | |
TextEdit (LexerCursorRange OldRange, std::string NewText) | |
bool | isReplace () const |
bool | isRemoval () const |
bool | isInsertion () const |
LexerCursorRange | oldRange () const |
std::string_view | newText () const |
Static Public Member Functions | |
static TextEdit | mkInsertion (LexerCursor P, std::string NewText) |
static TextEdit | mkRemoval (LexerCursorRange RemovingRange) |
Remove the text at OldRange
, and replace it as NewText
Special cases:
OldRange
that Begin
== End
.NewText
. Definition at line 25 of file Diagnostic.h.
|
inline |
Definition at line 30 of file Diagnostic.h.
References nixf::LexerCursorRange::lCur(), and nixf::LexerCursorRange::rCur().
|
inlinenodiscard |
Definition at line 49 of file Diagnostic.h.
References nixf::LexerCursorRange::lCur(), and nixf::LexerCursorRange::rCur().
Referenced by isReplace().
|
inlinenodiscard |
Definition at line 47 of file Diagnostic.h.
Referenced by isReplace().
|
inlinenodiscard |
Definition at line 43 of file Diagnostic.h.
References isInsertion(), and isRemoval().
|
inlinestatic |
Definition at line 35 of file Diagnostic.h.
Referenced by nixf::Sema::checkFormalEllipsis(), nixf::Sema::checkFormalSep(), nixf::detail::diagNullExpr(), nixf::Parser::parseAttrPath(), nixf::Parser::parseBinding(), nixf::Parser::parseExprIf(), nixf::Parser::parseExprSelect(), nixf::Parser::parseExprSimple(), and nixf::Parser::parseLambdaArg().
|
inlinestatic |
Definition at line 39 of file Diagnostic.h.
Referenced by nixf::Sema::checkFormalEmpty(), nixf::Sema::lowerInheritName(), nixf::Parser::parseAttrPath(), nixf::Parser::parseExprAssert(), nixf::Parser::parseExprIf(), nixf::Parser::parseExprParen(), nixf::Parser::parseExprSelect(), nixf::Parser::parseInherit(), nixf::Parser::parseLambdaArg(), and nixf::Sema::removeFormal().
|
inlinenodiscard |
Definition at line 54 of file Diagnostic.h.
|
inlinenodiscard |
Definition at line 53 of file Diagnostic.h.