( content: SimpleExpressionNode['content'], isStatic: SimpleExpressionNode['isStatic'] = false, loc: SourceLocation = locStub, constType: ConstantTypes = ConstantTypes.NOT_CONSTANT, )
| 683 | } |
| 684 | |
| 685 | export function createSimpleExpression( |
| 686 | content: SimpleExpressionNode['content'], |
| 687 | isStatic: SimpleExpressionNode['isStatic'] = false, |
| 688 | loc: SourceLocation = locStub, |
| 689 | constType: ConstantTypes = ConstantTypes.NOT_CONSTANT, |
| 690 | ): SimpleExpressionNode { |
| 691 | return { |
| 692 | type: NodeTypes.SIMPLE_EXPRESSION, |
| 693 | loc, |
| 694 | content, |
| 695 | isStatic, |
| 696 | constType: isStatic ? ConstantTypes.CAN_STRINGIFY : constType, |
| 697 | } |
| 698 | } |
| 699 | |
| 700 | export function createInterpolation( |
| 701 | content: InterpolationNode['content'] | string, |
no outgoing calls