Home
last modified time | relevance | path

Searched refs:file_id (Results 1 – 25 of 32) sorted by relevance

12

/third_party/rust/crates/codespan/codespan-lsp/src/
Dlib.rs39 file_id: F::FileId, in byte_index_to_position()
45 let source = files.source(file_id)?; in byte_index_to_position()
48 let line_index = files.line_index(file_id, byte_index)?; in byte_index_to_position()
49 let line_span = files.line_range(file_id, line_index).unwrap(); in byte_index_to_position()
68 file_id: F::FileId, in byte_span_to_range()
75 start: byte_index_to_position(files, file_id, span.start)?, in byte_span_to_range()
76 end: byte_index_to_position(files, file_id, span.end)?, in byte_span_to_range()
109 file_id: F::FileId, in position_to_byte_index()
115 let source = files.source(file_id)?; in position_to_byte_index()
118 let line_span = files.line_range(file_id, position.line as usize).unwrap(); in position_to_byte_index()
[all …]
/third_party/rust/crates/codespan/codespan/src/
Dfile.rs65 let file_id = FileId::new(self.files.len()); in add() localVariable
67 file_id in add()
74 pub fn update(&mut self, file_id: FileId, source: Source) { in update()
75 self.get_mut(file_id).update(source.into()) in update()
80 fn get(&self, file_id: FileId) -> &File<Source> { in get()
81 &self.files[file_id.get()] in get()
86 fn get_mut(&mut self, file_id: FileId) -> &mut File<Source> { in get_mut()
87 &mut self.files[file_id.get()] in get_mut()
102 pub fn name(&self, file_id: FileId) -> &OsStr { in name()
103 self.get(file_id).name() in name()
[all …]
/third_party/rust/crates/codespan/codespan-reporting/examples/
Dcustom_files.rs101 let file_id = FileId(u32::try_from(self.files.len()).ok()?); in add() localVariable
112 Some(file_id) in add()
116 fn get(&self, file_id: FileId) -> Result<&File, files::Error> { in get()
118 .get(file_id.0 as usize) in get()
128 fn name(&self, file_id: FileId) -> Result<&str, files::Error> { in name()
129 Ok(self.get(file_id)?.name.as_ref()) in name()
132 fn source(&self, file_id: FileId) -> Result<&str, files::Error> { in source()
133 Ok(&self.get(file_id)?.source) in source()
136 fn line_index(&self, file_id: FileId, byte_index: usize) -> Result<usize, files::Error> { in line_index()
137 self.get(file_id)? in line_index()
[all …]
/third_party/rust/crates/codespan/codespan-reporting/src/term/
Dviews.rs46 file_id: FileId, in render() field
90 let start_line_index = files.line_index(label.file_id, label.range.start)?; in render()
91 let start_line_number = files.line_number(label.file_id, start_line_index)?; in render()
92 let start_line_range = files.line_range(label.file_id, start_line_index)?; in render()
93 let end_line_index = files.line_index(label.file_id, label.range.end)?; in render()
94 let end_line_number = files.line_number(label.file_id, end_line_index)?; in render()
95 let end_line_range = files.line_range(label.file_id, end_line_index)?; in render()
105 .find(|labeled_file| label.file_id == labeled_file.file_id) in render()
115 labeled_file.location = files.location(label.file_id, label.range.start)?; in render()
123 file_id: label.file_id, in render()
[all …]
/third_party/rust/crates/codespan/codespan-reporting/src/
Dfiles.rs372 let file_id = self.files.len(); in add() localVariable
374 file_id in add()
378 pub fn get(&self, file_id: usize) -> Result<&SimpleFile<Name, Source>, Error> { in get()
379 self.files.get(file_id).ok_or(Error::FileMissing) in get()
392 fn name(&self, file_id: usize) -> Result<Name, Error> { in name()
393 Ok(self.get(file_id)?.name().clone()) in name()
396 fn source(&self, file_id: usize) -> Result<&str, Error> { in source()
397 Ok(self.get(file_id)?.source().as_ref()) in source()
400 fn line_index(&self, file_id: usize, byte_index: usize) -> Result<usize, Error> { in line_index()
401 self.get(file_id)?.line_index((), byte_index) in line_index()
[all …]
Ddiagnostic.rs69 pub file_id: FileId, field
81 file_id: FileId, in new()
86 file_id, in new()
95 pub fn primary(file_id: FileId, range: impl Into<Range<usize>>) -> Label<FileId> { in primary()
96 Label::new(LabelStyle::Primary, file_id, range) in primary()
102 pub fn secondary(file_id: FileId, range: impl Into<Range<usize>>) -> Label<FileId> { in secondary()
103 Label::new(LabelStyle::Secondary, file_id, range) in secondary()
/third_party/node/deps/v8/src/codegen/
Dsource-position.h56 static SourcePosition External(int line, int file_id) { in External() argument
57 return SourcePosition(line, file_id, kNotInlined); in External()
106 void SetExternalFileId(int file_id) { in SetExternalFileId() argument
108 DCHECK(file_id <= ExternalFileIdField::kMax - 1); in SetExternalFileId()
109 value_ = ExternalFileIdField::update(value_, file_id); in SetExternalFileId()
137 SourcePosition(int line, int file_id, int inlining_id) : value_(0) { in SourcePosition() argument
140 SetExternalFileId(file_id); in SourcePosition()
/third_party/ltp/testcases/kernel/fs/inode/
Dinode01.c96 int file_id; variable
352 file_id = creat(new_string, FILE_MODE); in generate()
353 if (file_id == -1) { in generate()
372 write(file_id, new_string, len); in generate()
381 close(file_id); in generate()
502 file_id = open(path_string, READ); in check()
503 if (file_id <= 0) { in check()
520 read(file_id, read_string, len); in check()
538 close(file_id); in check()
692 close(file_id); in term()
Dinode02.c82 int file_id; variable
449 file_id = creat(new_string, FILE_MODE); in generate()
450 if (file_id == -1) { in generate()
470 write(file_id, new_string, len); in generate()
478 close(file_id); in generate()
603 file_id = open(path_string, READ); in check()
604 if (file_id <= 0) { in check()
622 read(file_id, read_string, len); in check()
639 close(file_id); in check()
799 close(file_id); in term()
/third_party/rust/crates/codespan/codespan-reporting/tests/
Dterm.rs542 let file_id = files.add( localVariable
572 … Label::primary(file_id, 163..166).with_message("expected `String`, found `Nat`"),
573 … Label::secondary(file_id, 62..166).with_message("`case` clauses have incompatible types"),
574 … Label::secondary(file_id, 41..47).with_message("expected type `String` found here"),
587 … Label::primary(file_id, 328..331).with_message("expected `String`, found `Nat`"),
588 … Label::secondary(file_id, 211..331).with_message("`case` clauses have incompatible types"),
589 … Label::secondary(file_id, 258..268).with_message("this is found to be of type `String`"),
590 … Label::secondary(file_id, 284..290).with_message("this is found to be of type `String`"),
591 … Label::secondary(file_id, 306..312).with_message("this is found to be of type `String`"),
592 … Label::secondary(file_id, 186..192).with_message("expected type `String` found here"),
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/val/
Dvalidate_debug.cpp46 const auto file_id = inst->GetOperandAs<uint32_t>(0); in ValidateLine() local
47 const auto file = _.FindDef(file_id); in ValidateLine()
50 << "OpLine Target <id> '" << _.getIdName(file_id) in ValidateLine()
/third_party/skia/third_party/externals/spirv-tools/source/val/
Dvalidate_debug.cpp46 const auto file_id = inst->GetOperandAs<uint32_t>(0); in ValidateLine() local
47 const auto file = _.FindDef(file_id); in ValidateLine()
50 << "OpLine Target <id> '" << _.getIdName(file_id) in ValidateLine()
/third_party/spirv-tools/source/val/
Dvalidate_debug.cpp46 const auto file_id = inst->GetOperandAs<uint32_t>(0); in ValidateLine() local
47 const auto file = _.FindDef(file_id); in ValidateLine()
50 << "OpLine Target <id> " << _.getIdName(file_id) in ValidateLine()
/third_party/ntfs-3g/libntfs-3g/
Dobject_id.c119 le64 file_id; member
146 le64 file_id; in set_object_id_index() local
151 file_id = cpu_to_le64(file_id_cpu); in set_object_id_index()
167 indx.data.file_id = file_id; in set_object_id_index()
241 && (MREF(le64_to_cpu(entry->data.file_id)) in merge_index_data()
535 ->data.file_id) == ni->mft_no)) { in ntfs_set_ntfs_object_id()
Dreparse.c945 le64 file_id; in set_reparse_index() local
950 file_id = cpu_to_le64(file_id_cpu); in set_reparse_index()
964 memcpy(&indx.key.file_id, &file_id, 8); in set_reparse_index()
984 le64 file_id; in remove_reparse_index() local
996 file_id = cpu_to_le64(file_id_cpu); in remove_reparse_index()
999 memcpy(&key.file_id, &file_id, 8); in remove_reparse_index()
/third_party/rust/crates/codespan/
DREADME.md44 let file_id = files.add(
76 Label::primary(file_id, 328..331).with_message("expected `String`, found `Nat`"),
77 Label::secondary(file_id, 211..331).with_message("`case` clauses have incompatible types"),
78 Label::secondary(file_id, 258..268).with_message("this is found to be of type `String`"),
79 Label::secondary(file_id, 284..290).with_message("this is found to be of type `String`"),
80 Label::secondary(file_id, 306..312).with_message("this is found to be of type `String`"),
81 Label::secondary(file_id, 186..192).with_message("expected type `String` found here"),
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dpcsc_funcs.c252 static int _scard_select_file(struct scard_data *scard, unsigned short file_id,
256 static int scard_select_file(struct scard_data *scard, unsigned short file_id,
806 static int _scard_select_file(struct scard_data *scard, unsigned short file_id, in _scard_select_file() argument
824 wpa_printf(MSG_DEBUG, "SCARD: select file %04x", file_id); in _scard_select_file()
835 cmd[5] = file_id >> 8; in _scard_select_file()
836 cmd[6] = file_id & 0xff; in _scard_select_file()
887 static int scard_select_file(struct scard_data *scard, unsigned short file_id, in scard_select_file() argument
890 return _scard_select_file(scard, file_id, buf, buf_len, in scard_select_file()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Dpcsc_funcs.c252 static int _scard_select_file(struct scard_data *scard, unsigned short file_id,
256 static int scard_select_file(struct scard_data *scard, unsigned short file_id,
806 static int _scard_select_file(struct scard_data *scard, unsigned short file_id, in _scard_select_file() argument
824 wpa_printf(MSG_DEBUG, "SCARD: select file %04x", file_id); in _scard_select_file()
835 cmd[5] = file_id >> 8; in _scard_select_file()
836 cmd[6] = file_id & 0xff; in _scard_select_file()
887 static int scard_select_file(struct scard_data *scard, unsigned short file_id, in scard_select_file() argument
890 return _scard_select_file(scard, file_id, buf, buf_len, in scard_select_file()
/third_party/gstreamer/gstplugins_bad/gst/asfmux/
Dgstasfmux.h126 Guid file_id; member
Dgstasfmux.c203 asfmux->file_id.v1 = 0; in gst_asf_mux_reset()
204 asfmux->file_id.v2 = 0; in gst_asf_mux_reset()
205 asfmux->file_id.v3 = 0; in gst_asf_mux_reset()
206 asfmux->file_id.v4 = 0; in gst_asf_mux_reset()
658 gst_asf_put_guid (*buf + 24, asfmux->file_id); in gst_asf_mux_write_file_properties()
1202 gst_asf_put_guid (*buf + 24, asfmux->file_id); in gst_asf_mux_write_data_object()
1315 gst_asf_generate_file_id (&asfmux->file_id); in gst_asf_mux_start_file()
1713 gst_asf_put_guid (data + 24, asfmux->file_id); in gst_asf_mux_push_simple_index()
1870 gst_asf_put_guid (data + 8, asfmux->file_id); in gst_asf_mux_stop_file()
/third_party/googletest/googletest/scripts/
Dupload.py680 def UploadFile(filename, file_id, content, is_binary, status, is_base): argument
695 url = "/%d/upload_content/%d/%d" % (int(issue), int(patchset), file_id)
722 file_id = int(file_id_str)
724 UploadFile(filename, file_id, base_content, is_binary, status, True)
726 UploadFile(filename, file_id, new_content, is_binary, status, False)
/third_party/node/deps/v8/src/compiler/
Draw-machine-assembler.cc50 int file_id = in SetCurrentExternalSourcePosition() local
52 SourcePosition p = SourcePosition::External(file_and_line.second, file_id); in SetCurrentExternalSourcePosition()
60 int file_id = p.ExternalFileId(); in GetCurrentExternalSourcePosition() local
61 const char* file_name = isolate()->GetExternallyCompiledFilename(file_id); in GetCurrentExternalSourcePosition()
/third_party/NuttX/fs/nfs/
Dnfs_proto.h353 uint32_t file_id[2]; member
Dnfs_adapter.c1008 if (nfs_dir && nfs_dir->nfs_entries && (nfs_dir->nfs_entries->file_id[0] == (uint32_t)EOF)) in vfs_nfs_readdir()
1134 entry->file_id[0] = *ptr++; in vfs_nfs_readdir()
1135 entry->file_id[1] = *ptr++; /*lint !e662 !e661*/ in vfs_nfs_readdir()
1211 entry->file_id[0] = (uint32_t)EOF; in vfs_nfs_readdir()
1223 if (nfs_dir->nfs_entries->file_id[0] == (uint32_t)EOF) in vfs_nfs_readdir()
/third_party/skia/third_party/externals/spirv-cross/
Dspirv_parser.cpp1117 if (current_function->entry_line.file_id == 0) in parse()
1119 current_function->entry_line.file_id = ops[0]; in parse()

12