"use strict";
/*
 * edge-parser
 *
 * (c) Harminder Virk <virk@adonisjs.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.makeStatePropertyAccessor = void 0;
/**
 * Returns Acorn complaint AST for a collable expression
 */
function makeStatePropertyAccessor(propertyName, args) {
    return {
        type: 'MemberExpression',
        object: {
            type: 'Identifier',
            name: propertyName,
        },
        computed: false,
        property: args,
    };
}
exports.makeStatePropertyAccessor = makeStatePropertyAccessor;
