Home
last modified time | relevance | path

Searched refs:source_file (Results 1 – 22 of 22) sorted by relevance

/system/host/fidl/include/fidl/
A Dsource_location.h21 SourceLocation(StringView data, const SourceFile& source_file) in SourceLocation() argument
22 : data_(data), source_file_(&source_file) {} in SourceLocation()
29 const SourceFile& source_file() const { return *source_file_; } in source_file() function
A Dlexer.h26 Lexer(const SourceFile& source_file, ErrorReporter* error_reporter) in Lexer() argument
27 : source_file_(source_file), error_reporter_(error_reporter) { in Lexer()
/system/host/banjo/include/banjo/
A Dsource_location.h21 SourceLocation(StringView data, const SourceFile& source_file) in SourceLocation() argument
22 : data_(data), source_file_(&source_file) {} in SourceLocation()
29 const SourceFile& source_file() const { return *source_file_; } in source_file() function
A Dlexer.h25 Lexer(const SourceFile& source_file, IdentifierTable* identifier_table) in Lexer() argument
26 : source_file_(source_file), identifier_table_(identifier_table) { in Lexer()
A Didentifier_table.h24 StringView source_data, const SourceFile& source_file,
/system/host/banjo/formatter/
A Dmain.cpp50 bool Format(const banjo::SourceFile& source_file, banjo::IdentifierTable* identifier_table, in Format() argument
52 banjo::Lexer lexer(source_file, identifier_table); in Format()
104 for (const auto& source_file : source_manager.sources()) { in main() local
106 if (!Format(*source_file, &identifier_table, &error_reporter, output)) { in main()
112 const char* filename = source_file->filename().data(); in main()
/system/host/fidl/formatter/
A Dmain.cpp51 bool Format(const fidl::SourceFile& source_file, bool remove_ordinals, in Format() argument
53 fidl::Lexer lexer(source_file, error_reporter); in Format()
107 for (const auto& source_file : source_manager.sources()) { in main() local
109 if (!Format(*source_file, remove_ordinals, &error_reporter, output)) { in main()
117 const char* filename = source_file->filename().data(); in main()
/system/host/banjo/lib/
A Didentifier_table.cpp18 …:MakeIdentifier(SourceLocation previous_end, StringView source_data, const SourceFile& source_file, in MakeIdentifier() argument
26 …return Token(previous_end, SourceLocation(source_data, source_file), Token::Kind::kIdentifier, sub… in MakeIdentifier()
A Dformatter.cpp383 banjo::SourceLocation(processed_file_start, real_start.previous_end().source_file())); in OnFile()
A Dflat_ast.cpp485 auto filename = location.source_file().filename(); in CompileCompoundIdentifier()
665 auto filename = using_directive->location().source_file().filename(); in ConsumeUsing()
/system/utest/banjo-compiler/
A Dtest_library.h64 auto source_file = MakeSourceFile(filename, raw_source_code); in AddSourceFile() local
66 banjo::Lexer lexer(source_file, &identifier_table); in AddSourceFile()
101 banjo::SourceFile source_file() { in source_file() function
A Dvisitor_unittests.cpp92 std::string expected(library.source_file().data()); in read_and_write_direct_test()
/system/utest/fidl-compiler/
A Dtest_library.h68 auto source_file = MakeSourceFile(filename, raw_source_code); in AddSourceFile() local
69 fidl::Lexer lexer(source_file, &error_reporter_); in AddSourceFile()
117 fidl::SourceFile source_file() { in source_file() function
A Dvisitor_unittests.cpp92 std::string expected(library.source_file().data()); in read_and_write_direct_test()
/system/host/banjo/
A DBUILD.gn22 "lib/source_file.cpp",
A Drules.mk26 $(LOCAL_DIR)/lib/source_file.cpp \
/system/host/fidl/
A DBUILD.gn22 "lib/source_file.cpp",
A Drules.mk28 $(LOCAL_DIR)/lib/source_file.cpp \
/system/host/banjo/compiler/
A Dmain.cpp257 bool Parse(const banjo::SourceFile& source_file, banjo::IdentifierTable* identifier_table, in Parse() argument
259 banjo::Lexer lexer(source_file, identifier_table); in Parse()
367 for (const auto& source_file : source_manager.sources()) { in main() local
368 if (!Parse(*source_file, &identifier_table, &error_reporter, library.get())) { in main()
/system/host/fidl/compiler/
A Dmain.cpp229 bool Parse(const fidl::SourceFile& source_file, in Parse() argument
231 fidl::Lexer lexer(source_file, error_reporter); in Parse()
360 for (const auto& source_file : source_manager.sources()) { in compile() local
361 if (!Parse(*source_file, error_reporter, library.get())) { in compile()
/system/host/fidl/lib/
A Dformatter.cpp396 fidl::SourceLocation(processed_file_start, real_start.previous_end().source_file())); in OnFile()
A Dflat_ast.cpp842 auto filename = location.source_file().filename(); in CompileCompoundIdentifier()
1008 auto filename = using_directive->location().source_file().filename(); in ConsumeUsing()

Completed in 41 milliseconds