public override object Visit(IdentifierExpression id) { id.NonNull(nameof(id)).Identifier.NonBlank(nameof(id.Identifier)); //check that id is accepted var f = Translator.IdentifierFilter; if (f != null && !f(id)) { throw new ASTException(StringConsts.AST_BAD_IDENTIFIER_ERROR.Args(id.Identifier)); } return(id.Identifier); }
public override object Visit(IdentifierExpression id) { id.NonNull(nameof(id)).Identifier.NonBlank(nameof(id.Identifier)); //check that id is accepted var f = Translator.IdentifierFilter; if (f!=null && !f(id)) throw new ASTException(StringConsts.AST_BAD_IDENTIFIER_ERROR.Args(id.Identifier)); m_Sql.Append(MasterAlias); m_Sql.Append('.'); m_Sql.Append(IdentifierQuote); m_Sql.Append(id.Identifier); m_Sql.Append(IdentifierQuote); return m_Sql; }