Lines Matching refs:sourceMgr

75 getLspDiagnoticFromDiag(llvm::SourceMgr &sourceMgr, const ast::Diagnostic &diag,  in getLspDiagnoticFromDiag()  argument
85 lsp::Location loc = getLocationFromLoc(sourceMgr, diag.getLocation(), uri); in getLspDiagnoticFromDiag()
112 getLocationFromLoc(sourceMgr, note.getLocation(), uri), in getLspDiagnoticFromDiag()
122 static Optional<std::string> getDocumentationFor(llvm::SourceMgr &sourceMgr, in getDocumentationFor() argument
135 int bufferId = sourceMgr.FindBufferContainingLoc(startLoc); in getDocumentationFor()
139 sourceMgr.getMemoryBuffer(bufferId)->getBufferStart(); in getDocumentationFor()
402 llvm::SourceMgr sourceMgr; member
435 sourceMgr.setIncludeDirs(includeDirs); in PDLDocument()
436 sourceMgr.AddNewSourceBuffer(std::move(memBuffer), SMLoc()); in PDLDocument()
439 if (auto lspDiag = getLspDiagnoticFromDiag(sourceMgr, diag, uri)) in PDLDocument()
442 astModule = parsePDLLAST(astContext, sourceMgr, /*enableDocumentation=*/true); in PDLDocument()
445 lsp::gatherIncludeFiles(sourceMgr, parsedIncludes); in PDLDocument()
462 SMLoc posLoc = defPos.getAsSMLoc(sourceMgr); in getLocationsOf()
467 locations.push_back(getLocationFromLoc(sourceMgr, symbol->getDefLoc(), uri)); in getLocationsOf()
473 SMLoc posLoc = pos.getAsSMLoc(sourceMgr); in findReferencesOf()
478 references.push_back(getLocationFromLoc(sourceMgr, symbol->getDefLoc(), uri)); in findReferencesOf()
480 references.push_back(getLocationFromLoc(sourceMgr, refLoc, uri)); in findReferencesOf()
499 SMLoc posLoc = hoverPos.getAsSMLoc(sourceMgr); in findHover()
546 lsp::Hover hover(lsp::Range(sourceMgr, hoverRange)); in buildHoverForOpName()
558 lsp::Hover hover(lsp::Range(sourceMgr, hoverRange)); in buildHoverForVariable()
569 lsp::Hover hover(lsp::Range(sourceMgr, hoverRange)); in buildHoverForPattern()
584 if (Optional<std::string> doc = getDocumentationFor(sourceMgr, decl)) in buildHoverForPattern()
593 lsp::Hover hover(lsp::Range(sourceMgr, hoverRange)); in buildHoverForCoreConstraint()
620 lsp::Hover hover(lsp::Range(sourceMgr, hoverRange)); in buildHoverForUserConstraintOrRewrite()
651 if (Optional<std::string> doc = getDocumentationFor(sourceMgr, decl)) in buildHoverForUserConstraintOrRewrite()
667 if (!isMainFileLoc(sourceMgr, decl->getLoc())) in findDocumentSymbols()
678 lsp::Range(sourceMgr, bodyLoc), lsp::Range(sourceMgr, nameLoc)); in findDocumentSymbols()
686 lsp::Range(sourceMgr, bodyLoc), lsp::Range(sourceMgr, nameLoc)); in findDocumentSymbols()
694 lsp::Range(sourceMgr, bodyLoc), lsp::Range(sourceMgr, nameLoc)); in findDocumentSymbols()
706 LSPCodeCompleteContext(SMLoc completeLoc, llvm::SourceMgr &sourceMgr, in LSPCodeCompleteContext() argument
710 : CodeCompleteContext(completeLoc), sourceMgr(sourceMgr), in LSPCodeCompleteContext()
888 if (Optional<std::string> doc = getDocumentationFor(sourceMgr, cst)) { in codeCompleteConstraintName()
1016 llvm::SourceMgr &sourceMgr; member in __anon9e2fdad81011::LSPCodeCompleteContext
1026 SMLoc posLoc = completePos.getAsSMLoc(sourceMgr); in getCodeCompletion()
1034 LSPCodeCompleteContext lspCompleteContext(posLoc, sourceMgr, completionList, in getCodeCompletion()
1036 sourceMgr.getIncludeDirs()); in getCodeCompletion()
1039 (void)parsePDLLAST(tmpContext, sourceMgr, /*enableDocumentation=*/true, in getCodeCompletion()
1052 LSPSignatureHelpContext(SMLoc completeLoc, llvm::SourceMgr &sourceMgr, in LSPSignatureHelpContext() argument
1055 : CodeCompleteContext(completeLoc), sourceMgr(sourceMgr), in LSPSignatureHelpContext()
1079 if (Optional<std::string> doc = getDocumentationFor(sourceMgr, callable)) in codeCompleteCallSignature()
1173 llvm::SourceMgr &sourceMgr; member in __anon9e2fdad81611::LSPSignatureHelpContext
1181 SMLoc posLoc = helpPos.getAsSMLoc(sourceMgr); in getSignatureHelp()
1189 LSPSignatureHelpContext completeContext(posLoc, sourceMgr, signatureHelp, in getSignatureHelp()
1193 (void)parsePDLLAST(tmpContext, sourceMgr, /*enableDocumentation=*/true, in getSignatureHelp()
1223 SMRange rangeLoc = range.getAsSMRange(sourceMgr); in getInlayHints()
1260 lsp::Position(sourceMgr, decl->getLoc().End)); in getInlayHintsFor()
1340 lsp::Position(sourceMgr, expr->getLoc().Start)); in addParameterHintFor()
1363 SourceMgrDiagnosticHandler diagHandler(sourceMgr, &mlirContext, os); in getPDLLViewOutput()
1365 codegenPDLLToMLIR(&mlirContext, astContext, sourceMgr, **astModule); in getPDLLViewOutput()