MCPcopy Create free account
hub / github.com/ChaiScript/ChaiScript / Parse_Location

Class Parse_Location

include/chaiscript/language/chaiscript_common.hpp:101–123  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99 };
100
101 struct Parse_Location {
102 Parse_Location(std::string t_fname="", const int t_start_line=0, const int t_start_col=0,
103 const int t_end_line=0, const int t_end_col=0)
104 : start(t_start_line, t_start_col),
105 end(t_end_line, t_end_col),
106 filename(std::make_shared<std::string>(std::move(t_fname)))
107 {
108 }
109
110 Parse_Location(std::shared_ptr<std::string> t_fname, const int t_start_line=0, const int t_start_col=0,
111 const int t_end_line=0, const int t_end_col=0)
112 : start(t_start_line, t_start_col),
113 end(t_end_line, t_end_col),
114 filename(std::move(t_fname))
115 {
116 }
117
118
119
120 File_Position start;
121 File_Position end;
122 std::shared_ptr<std::string> filename;
123 };
124
125
126 /// \brief Typedef for pointers to AST_Node objects. Used in building of the AST_Node tree

Callers 4

build_matchMethod · 0.85
make_nodeMethod · 0.85
Constant_AST_NodeMethod · 0.85
Noop_AST_NodeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected