|
@@ -317,7 +317,7 @@ void HqlLex::pushText(IFileContents * text, int startLineNo, int startColumn)
|
|
|
|
|
|
void HqlLex::pushText(const char *s, int startLineNo, int startColumn)
|
|
|
{
|
|
|
- Owned<IFileContents> macroContents = createFileContentsFromText(s, sourcePath);
|
|
|
+ Owned<IFileContents> macroContents = createFileContentsFromText(s, sourcePath, yyParser->inSignedModule);
|
|
|
pushText(macroContents, startLineNo, startColumn);
|
|
|
}
|
|
|
|
|
@@ -327,7 +327,7 @@ void HqlLex::pushText(const char *s)
|
|
|
#ifdef TIMING_DEBUG
|
|
|
MTIME_SECTION(timer, "HqlLex::pushText");
|
|
|
#endif
|
|
|
- Owned<IFileContents> macroContents = createFileContentsFromText(s, sourcePath);
|
|
|
+ Owned<IFileContents> macroContents = createFileContentsFromText(s, sourcePath, yyParser->inSignedModule);
|
|
|
inmacro = new HqlLex(yyParser, macroContents, NULL, NULL);
|
|
|
inmacro->set_yyLineNo(yyLineNo);
|
|
|
inmacro->set_yyColumn(yyColumn);
|
|
@@ -659,7 +659,7 @@ void HqlLex::processEncrypted()
|
|
|
decryptEclAttribute(decrypted, encoded64.str());
|
|
|
decrypted.append(0); // add a null terminator to the string...
|
|
|
Owned<ISourcePath> sourcePath = createSourcePath("<encrypted>");
|
|
|
- Owned<IFileContents> decryptedContents = createFileContentsFromText((const char *)decrypted.toByteArray(), sourcePath);
|
|
|
+ Owned<IFileContents> decryptedContents = createFileContentsFromText((const char *)decrypted.toByteArray(), sourcePath, yyParser->inSignedModule);
|
|
|
inmacro = new HqlLex(yyParser, decryptedContents, NULL, NULL);
|
|
|
inmacro->setParentLex(this);
|
|
|
inmacro->encrypted = true;
|
|
@@ -1077,7 +1077,7 @@ void HqlLex::doExport(YYSTYPE & returnToken, bool toXml)
|
|
|
try
|
|
|
{
|
|
|
HqlLookupContext ctx(yyParser->lookupCtx);
|
|
|
- Owned<IFileContents> exportContents = createFileContentsFromText(curParam.str(), sourcePath);
|
|
|
+ Owned<IFileContents> exportContents = createFileContentsFromText(curParam.str(), sourcePath, yyParser->inSignedModule);
|
|
|
expr.setown(parseQuery(scope, exportContents, ctx, xmlScope, NULL, true));
|
|
|
|
|
|
if (expr && (expr->getOperator() == no_sizeof))
|
|
@@ -1219,8 +1219,8 @@ void HqlLex::doFor(YYSTYPE & returnToken, bool doAll)
|
|
|
|
|
|
forLoop = getSubScopes(returnToken, str(name), doAll);
|
|
|
if (forFilterText.length())
|
|
|
- forFilter.setown(createFileContentsFromText(forFilterText, sourcePath));
|
|
|
- forBody.setown(createFileContentsFromText(forBodyText, sourcePath));
|
|
|
+ forFilter.setown(createFileContentsFromText(forFilterText, sourcePath, yyParser->inSignedModule));
|
|
|
+ forBody.setown(createFileContentsFromText(forBodyText, sourcePath, yyParser->inSignedModule));
|
|
|
|
|
|
loopTimes = 0;
|
|
|
if (forLoop && forLoop->first()) // more - check filter
|
|
@@ -1269,7 +1269,7 @@ void HqlLex::doLoop(YYSTYPE & returnToken)
|
|
|
::Release(forLoop);
|
|
|
forLoop = new CDummyScopeIterator(ensureTopXmlScope());
|
|
|
forFilter.clear();
|
|
|
- forBody.setown(createFileContentsFromText(forBodyText, sourcePath));
|
|
|
+ forBody.setown(createFileContentsFromText(forBodyText, sourcePath, yyParser->inSignedModule));
|
|
|
loopTimes = 0;
|
|
|
if (forLoop->first()) // more - check filter
|
|
|
checkNextLoop(returnToken, true,startLine,startCol);
|
|
@@ -1510,7 +1510,7 @@ void HqlLex::doIsValid(YYSTYPE & returnToken)
|
|
|
{
|
|
|
HqlLookupContext ctx(yyParser->lookupCtx);
|
|
|
ctx.errs.clear(); //Deliberately ignore any errors
|
|
|
- Owned<IFileContents> contents = createFileContentsFromText(curParam.str(), sourcePath);
|
|
|
+ Owned<IFileContents> contents = createFileContentsFromText(curParam.str(), sourcePath, yyParser->inSignedModule);
|
|
|
expr = parseQuery(scope, contents, ctx, xmlScope, NULL, true);
|
|
|
|
|
|
if(expr)
|
|
@@ -1788,7 +1788,7 @@ IHqlExpression *HqlLex::parseECL(IFileContents * contents, IXmlScope *xmlScope,
|
|
|
|
|
|
IHqlExpression *HqlLex::parseECL(const char * text, IXmlScope *xmlScope, int startLine, int startCol)
|
|
|
{
|
|
|
- Owned<IFileContents> contents = createFileContentsFromText(text, querySourcePath());
|
|
|
+ Owned<IFileContents> contents = createFileContentsFromText(text, querySourcePath(), yyParser->inSignedModule);
|
|
|
return parseECL(contents, xmlScope, startLine, startCol);
|
|
|
}
|
|
|
|