Lines Matching full:util
19 #include "util/es2pandaMacros.h"
22 #include "util/ustring.h"
23 #include "util/path.h"
24 #include "util/importPathManager.h"
27 #include "util/enumbitops.h"
69 using ExternalSource = ArenaUnorderedMap<util::StringView, ArenaVector<Program *>>;
70 using DirectExternalSource = ArenaUnorderedMap<util::StringView, ArenaVector<Program *>>;
126 util::StringView SourceCode() const in SourceCode()
131 const util::StringView &SourceFilePath() const in SourceFilePath()
136 const util::Path &SourceFile() const in SourceFile()
141 util::StringView SourceFileFolder() const in SourceFileFolder()
146 util::StringView FileName() const in FileName()
151 util::StringView FileNameWithExtension() const in FileNameWithExtension()
156 util::StringView AbsoluteName() const in AbsoluteName()
161 util::StringView ResolvedFilePath() const in ResolvedFilePath()
166 util::StringView RelativeFilePath() const in RelativeFilePath()
172 void SetRelativeFilePath(const util::StringView &relPath) in SetRelativeFilePath()
238 void SetSource(const util::StringView &sourceCode, const util::StringView &sourceFilePath, in SetSource()
239 const util::StringView &sourceFileFolder) in SetSource()
242 sourceFile_ = util::Path(sourceFilePath, Allocator()); in SetSource()
248 sourceCode_ = util::UString(sourceFile.source, Allocator()).View(); in SetSource()
249 sourceFile_ = util::Path(sourceFile.filePath, Allocator()); in SetSource()
250 sourceFileFolder_ = util::UString(sourceFile.fileFolder, Allocator()).View(); in SetSource()
251 resolvedFilePath_ = util::UString(sourceFile.resolvedPath, Allocator()).View(); in SetSource()
255 void SetPackageInfo(const util::StringView &name, util::ModuleKind kind);
262 util::StringView ModuleName() const in ModuleName()
267 util::StringView ModulePrefix() const in ModulePrefix()
274 return moduleInfo_.kind == util::ModuleKind::MODULE; in IsSeparateModule()
279 return moduleInfo_.kind == util::ModuleKind::DECLARATION; in IsDeclarationModule()
284 return moduleInfo_.kind == util::ModuleKind::PACKAGE; in IsPackage()
382 util::StringView sourceCode_ {};
383 util::Path sourceFile_ {};
384 util::StringView sourceFileFolder_ {};
385 util::StringView resolvedFilePath_ {};
386 util::StringView relativeFilePath_ {};
393 util::ModuleInfo moduleInfo_;