Skip to content

Commit 3e5836b

Browse files
move kVirtualDevice
1 parent ccbfafb commit 3e5836b

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

src/parser/parser.cc

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,13 @@ GlobalTypeVar AddOrGet(InternTable<GlobalTypeVar>* table, const std::string& nam
230230
}
231231
}
232232

233+
/*! brief The attribute key for the virtual device. This key will be promoted to first class on
234+
* functions.
235+
*
236+
* Type: VirtualDevice
237+
*/
238+
constexpr const char* kVirtualDevice = "result_virtual_device";
239+
233240
/*! \brief The parser class is the main interface to the parser.
234241
* the parser is not currently exposed beyond this .cc file.
235242
*
@@ -1080,16 +1087,6 @@ class Parser {
10801087
}
10811088
}
10821089

1083-
/*! brief The attribute key for the virtual device. This key will be promoted to first class on
1084-
* functions and variable bindings.
1085-
*
1086-
* Type: VirtualDevice
1087-
*/
1088-
// why can't this be constexpr?
1089-
// also where to put me?
1090-
// also change to just virtual_device, no result
1091-
const char* kVirtualDevice = "result_virtual_device";
1092-
10931090
/*! Parse a function definition without a leading keyword or identifier.
10941091
*
10951092
* Handles things of the form [T1, ..., TN](arg1: U1, ..., argN : UN) -> Ret { body }.

0 commit comments

Comments
 (0)