blob: fa64344432be18f87cd7dc352899358514f0ab45 [file] [log] [blame]
/*
* Copyright (C) 2018 CESNET, https://photonics.cesnet.cz/
* Copyright (C) 2018 FIT CVUT, https://fit.cvut.cz/
*
* Written by Václav Kubernát <kubervac@fit.cvut.cz>
*
*/
#include "parser_context.hpp"
ParserContext::ParserContext(const Schema& schema, const path_ curDir)
: m_schema(schema)
{
m_curPath = curDir;
if (!m_curPath.m_nodes.empty() && m_curPath.m_nodes.at(0).m_prefix)
m_topLevelModulePresent = true;
}