File tree Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Expand file tree Collapse file tree 3 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -111,12 +111,13 @@ cc_library(
111
111
deps = [
112
112
":lsp-parse-buffer" ,
113
113
":symbol-table-handler" ,
114
- "//common/util:casts" ,
115
- "//verilog/CST:seq_block" ,
116
114
"//common/lsp:lsp-protocol" ,
117
- "//verilog/CST:verilog_nonterminals" ,
118
- "//common/text:tree_context_visitor" ,
119
- "//verilog/parser:verilog_token_enum" ,
115
+ "//common/text:tree-context-visitor" ,
116
+ "//common/util:casts" ,
117
+ "//common/util:range" ,
118
+ "//verilog/CST:seq-block" ,
119
+ "//verilog/CST:verilog-nonterminals" ,
120
+ "//verilog/parser:verilog-token-enum" ,
120
121
],
121
122
)
122
123
Original file line number Diff line number Diff line change 17
17
18
18
#include " common/text/tree_context_visitor.h"
19
19
#include " common/util/casts.h"
20
+ #include " common/util/range.h"
20
21
#include " verilog/CST/seq_block.h"
21
22
#include " verilog/CST/verilog_nonterminals.h"
22
23
#include " verilog/analysis/symbol_table.h"
@@ -52,7 +53,7 @@ class FindBeginLabel : public TreeContextVisitor {
52
53
53
54
private:
54
55
void Visit (const SyntaxTreeLeaf &leaf) override {
55
- if (IsStringViewContained (leaf.get ().text (), substring_)) {
56
+ if (verible::IsSubRange (leaf.get ().text (), substring_)) {
56
57
substring_found_ = true ;
57
58
}
58
59
}
Original file line number Diff line number Diff line change @@ -33,9 +33,6 @@ namespace verilog {
33
33
// Looks for FileList file for SymbolTableHandler
34
34
std::string FindFileList (absl::string_view current_dir);
35
35
36
- // Checks if one string_view is contained in another
37
- bool IsStringViewContained (absl::string_view origin, absl::string_view substr);
38
-
39
36
// A class interfacing the SymbolTable with the LSP messages.
40
37
// It manages the SymbolTable and its necessary components,
41
38
// and provides such information as symbol definitions
You can’t perform that action at this time.
0 commit comments