Skip to content

Commit

Permalink
[USDC parser] Support parsing variantSet statement
Browse files Browse the repository at this point in the history
  • Loading branch information
syoyo committed Aug 7, 2023
1 parent 07ee3d9 commit 45d7223
Show file tree
Hide file tree
Showing 9 changed files with 382 additions and 228 deletions.
1 change: 1 addition & 0 deletions src/prim-types.cc
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ Path Path::append_element(const std::string &elem) {
return p;
}

// {variant=value}
if (is_variantElementName(elem)) {
std::array<std::string, 2> variant;
if (tokenize_variantElement(elem, &variant)) {
Expand Down
2 changes: 2 additions & 0 deletions src/prim-types.hh
Original file line number Diff line number Diff line change
Expand Up @@ -467,6 +467,7 @@ class Path {
return true; // prop part only
}

#if 0 // TODO: rmove
bool is_variant_selection_path() const {
if (!is_valid()) {
return false;
Expand All @@ -478,6 +479,7 @@ class Path {

return false;
}
#endif

// Strip '/'
Path &make_relative() {
Expand Down
Loading

0 comments on commit 45d7223

Please sign in to comment.