How to use the doctrine.Syntax.NumericLiteralType function in doctrine

To help you get started, we’ve selected a few doctrine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github dignifiedquire / clean-documentation-theme / test / utils.spec.js View on Github external
params: [{
          name: 'a',
          type: {type: Syntax.NumericLiteralType, value: 'number'}
        }]
      })
    ).to.be.eql(
      'new Test(a: <code>number</code>)'
    )

    expect(
      u.signature({
        kind: 'function',
        name: 'test',
        params: [{
          name: 'a',
          type: {type: Syntax.NumericLiteralType, value: 'number'}
        }],
        returns: [{
          type: {type: Syntax.NumericLiteralType, value: 'number'}
        }]
      })
    ).to.be.eql(
      'test(a: <code>number</code>): <code>number</code>'
    )

    expect(
      u.signature({
        kind: 'property',
        name: 'test',
        tags: [{
          title: 'type',
          type: {type: Syntax.NumericLiteralType, value: 'number'}
github dignifiedquire / clean-documentation-theme / test / utils.spec.js View on Github external
it('signature', () =&gt; {
    expect(
      u.signature({
        kind: 'class',
        name: 'Test',
        params: [{
          name: 'a',
          type: {type: Syntax.NumericLiteralType, value: 'number'}
        }]
      })
    ).to.be.eql(
      'new Test(a: <code>number</code>)'
    )

    expect(
      u.signature({
        kind: 'function',
        name: 'test',
        params: [{
          name: 'a',
          type: {type: Syntax.NumericLiteralType, value: 'number'}
        }],
        returns: [{
          type: {type: Syntax.NumericLiteralType, value: 'number'}