Home
last modified time | relevance | path

Searched refs:source_file_ (Results 1 – 10 of 10) sorted by relevance

/system/host/fidl/include/fidl/
A Dsource_location.h22 : data_(data), source_file_(&source_file) {} in SourceLocation()
24 SourceLocation() : data_(StringView()), source_file_(nullptr) {} in SourceLocation()
26 bool valid() const { return source_file_ != nullptr; } in valid()
29 const SourceFile& source_file() const { return *source_file_; } in source_file()
37 const SourceFile* source_file_; variable
A Dlexer.h27 : source_file_(source_file), error_reporter_(error_reporter) { in Lexer()
42 StringView data() { return source_file_.data(); } in data()
59 const SourceFile& source_file_; variable
/system/host/banjo/include/banjo/
A Dsource_location.h22 : data_(data), source_file_(&source_file) {} in SourceLocation()
24 SourceLocation() : data_(StringView()), source_file_(nullptr) {} in SourceLocation()
26 bool valid() const { return source_file_ != nullptr; } in valid()
29 const SourceFile& source_file() const { return *source_file_; } in source_file()
37 const SourceFile* source_file_; variable
A Dlexer.h26 : source_file_(source_file), identifier_table_(identifier_table) { in Lexer()
37 StringView data() { return source_file_.data(); } in data()
54 const SourceFile& source_file_; variable
/system/host/fidl/lib/
A Dlexer.cpp157 SourceLocation previous_location(previous, source_file_); in Finish()
159 SourceLocation(Reset(kind), source_file_), kind, Token::Subkind::kNone); in Finish()
176 SourceLocation previous_end(previous, source_file_); in LexIdentifier()
179 SourceLocation location(StringView(token_start_, token_size_), source_file_); in LexIdentifier()
189 return Token(previous_end, SourceLocation(identifier_data, source_file_), in LexIdentifier()
364 SourceLocation location(StringView(token_start_, token_size_), source_file_); in Lex()
406 SourceLocation location(StringView(token_start_, token_size_), source_file_); in Lex()
A Dsource_location.cpp10 return source_file_->LineContaining(data(), position_out); in SourceLine()
14 std::string position(source_file_->filename()); in position()
/system/host/banjo/lib/
A Dlexer.cpp91 SourceLocation previous_location(previous, source_file_); in Finish()
93 SourceLocation(Reset(kind), source_file_), kind, Token::Subkind::kNone); in Finish()
110 SourceLocation previous_end(previous, source_file_); in LexIdentifier()
115 previous_end, identifier_data, source_file_, /* escaped */ false); in LexIdentifier()
125 SourceLocation previous_end(previous, source_file_); in LexEscapedIdentifier()
130 previous_end, identifier_data, source_file_, /* escaped */ true); in LexEscapedIdentifier()
A Dsource_location.cpp10 return source_file_->LineContaining(data(), position_out); in SourceLine()
14 std::string position(source_file_->filename()); in position()
/system/utest/banjo-compiler/
A Dtest_library.h27 : source_file_(MakeSourceFile(filename, raw_source_code)), in TestLibrary()
28 lexer_(source_file_, &identifier_table_), in TestLibrary()
102 return source_file_; in source_file()
110 banjo::SourceFile source_file_;
/system/utest/fidl-compiler/
A Dtest_library.h27 : source_file_(MakeSourceFile(filename, raw_source_code)), in TestLibrary()
28 lexer_(source_file_, &error_reporter_), in TestLibrary()
118 return source_file_; in source_file()
130 fidl::SourceFile source_file_;

Completed in 13 milliseconds