clang
3.9.0
|
Public Member Functions | |
JavaScriptImportSorter (const Environment &Env, const FormatStyle &Style) | |
tooling::Replacements | analyze (TokenAnnotator &Annotator, SmallVectorImpl< AnnotatedLine * > &AnnotatedLines, FormatTokenLexer &Tokens, tooling::Replacements &Result) override |
![]() | |
TokenAnalyzer (const Environment &Env, const FormatStyle &Style) | |
tooling::Replacements | process () |
![]() | |
virtual | ~UnwrappedLineConsumer () |
Additional Inherited Members | |
![]() | |
void | consumeUnwrappedLine (const UnwrappedLine &TheLine) override |
void | finishRun () override |
![]() | |
FormatStyle | Style |
const Environment & | Env |
AffectedRangeManager | AffectedRangeMgr |
SmallVector< SmallVector < UnwrappedLine, 16 >, 2 > | UnwrappedLines |
encoding::Encoding | Encoding |
Definition at line 121 of file SortJavaScriptImports.cpp.
|
inline |
Definition at line 123 of file SortJavaScriptImports.cpp.
|
inlineoverridevirtual |
Implements clang::format::TokenAnalyzer.
Definition at line 128 of file SortJavaScriptImports.cpp.
References clang::format::TokenAnalyzer::AffectedRangeMgr, clang::format::JsModuleReference::Category, clang::format::AffectedRangeManager::computeAffectedLines(), clang::format::TokenAnalyzer::Env, clang::format::AnnotatedLine::First, clang::CharSourceRange::getCharRange(), clang::format::FormatTokenLexer::getKeywords(), clang::format::Environment::getSourceManager(), clang::format::JsModuleReference::IsExport, Keywords, clang::format::FormatToken::NewlinesBefore, and clang::SourceRange::setEnd().