How to use the isArrayLiteralExpression function from typescript

Find comprehensive JavaScript typescript.isArrayLiteralExpression code examples handpicked from public code repositorys.

9
10
11
12
13
14
15
16
17
18
}
exports.getAnimations = getAnimations;
function getInlineStyle(dec) {
    return astQuery_1.decoratorArgument(dec).bind(function (expr) {
        var property = expr.properties.find(function (p) { return astQuery_1.isProperty('styles', p); });
        return astQuery_1.getInitializer(property).fmap(function (expr) { return (expr && ts.isArrayLiteralExpression(expr) ? expr : undefined); });
    });
}
exports.getInlineStyle = getInlineStyle;
function getTemplate(dec) {
fork icon0
star icon0
watch icon1

375
376
377
378
379
380
381
382
383
384
// are removed.
function pickPropDecorationNodesToRemove(exprStmt, ngMetadata, checker) {
    const expr = expect(exprStmt.expression, ts.SyntaxKind.BinaryExpression);
    const literal = expect(expr.right, ts.SyntaxKind.ObjectLiteralExpression);
    if (!literal.properties.every(elem => ts.isPropertyAssignment(elem)
        && ts.isArrayLiteralExpression(elem.initializer))) {
        return [];
    }
    const assignments = literal.properties;
    // Consider each assignment individually. Either the whole assignment will be removed or
fork icon0
star icon0
watch icon1

Other functions in typescript

Sorted by popularity

function icon

typescript.SyntaxKind is the most popular function in typescript (82777 examples)