Add function names to constructors

This commit is contained in:
Robert Nelson 2014-01-02 12:50:48 -08:00
parent 17ad1f5fed
commit 3d4dfaea87
21 changed files with 77 additions and 77 deletions

View File

@ -6,7 +6,7 @@
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function localStorage() {
/** /**
* Reads the config out of the HTML5 local storage * Reads the config out of the HTML5 local storage

View File

@ -34,7 +34,7 @@ var enums = require('../enums.js'),
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function compressed() {
/** /**
* List of packets * List of packets
* @type {module:packet/packetlist} * @type {module:packet/packetlist}

View File

@ -31,7 +31,7 @@ var util = require('../util'),
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function literal() {
this.format = 'utf8'; // default format for literal data packets this.format = 'utf8'; // default format for literal data packets
this.data = ''; // literal data representation as native JavaScript string or bytes this.data = ''; // literal data representation as native JavaScript string or bytes
this.date = new Date(); this.date = new Date();

View File

@ -31,7 +31,7 @@
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function marker() {
/** /**
* Parsing function for a literal data packet (tag 10). * Parsing function for a literal data packet (tag 10).
* *

View File

@ -35,7 +35,7 @@ var enums = require('../enums.js'),
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function one_pass_signature() {
this.version = null; // A one-octet version number. The current version is 3. this.version = null; // A one-octet version number. The current version is 3.
this.type = null; // A one-octet signature type. Signature types are described in RFC4880 Section 5.2.1. this.type = null; // A one-octet signature type. Signature types are described in RFC4880 Section 5.2.1.
this.hashAlgorithm = null; // A one-octet number describing the hash algorithm used. (See RFC4880 9.4) this.hashAlgorithm = null; // A one-octet number describing the hash algorithm used. (See RFC4880 9.4)

View File

@ -15,7 +15,7 @@ var packetParser = require('./packet.js'),
/** /**
* @constructor * @constructor
*/ */
module.exports = packetlist = function () { module.exports = function packetlist() {
/** The number of packets contained within the list. /** The number of packets contained within the list.
* @readonly * @readonly
* @type {Integer} */ * @type {Integer} */

View File

@ -39,7 +39,7 @@ var util = require('../util'),
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function public_key() {
this.version = 4; this.version = 4;
/** Key creation date. /** Key creation date.
* @type {Date} */ * @type {Date} */

View File

@ -46,7 +46,7 @@ var type_keyid = require('../type/keyid.js'),
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function public_key_encrypted_session_key() {
this.version = 3; this.version = 3;
this.publicKeyId = new type_keyid(); this.publicKeyId = new type_keyid();

View File

@ -26,6 +26,6 @@ var publicKey = require('./public_key.js');
* @constructor * @constructor
* @extends module:packet/public_key * @extends module:packet/public_key
*/ */
module.exports = function () { module.exports = function public_subkey() {
publicKey.call(this); publicKey.call(this);
} }

View File

@ -42,7 +42,7 @@ var publicKey = require('./public_key.js'),
* @constructor * @constructor
* @extends module:packet/public_key * @extends module:packet/public_key
*/ */
module.exports = function () { module.exports = function secret_key() {
publicKey.call(this); publicKey.call(this);
// encrypted secret-key data // encrypted secret-key data
this.encrypted = null; this.encrypted = null;

View File

@ -26,6 +26,6 @@ var secretKey = require('./secret_key.js');
* @constructor * @constructor
* @extends module:packet/secret_key * @extends module:packet/secret_key
*/ */
module.exports = function () { module.exports = function secret_subkey() {
secretKey.call(this); secretKey.call(this);
} }

View File

@ -41,7 +41,7 @@ var util = require('../util'),
/** /**
* @constructor * @constructor
*/ */
module.exports = packetSignature = function () { module.exports = function signature() {
this.version = 4; this.version = 4;
this.signatureType = null; this.signatureType = null;
@ -499,7 +499,7 @@ module.exports = packetSignature = function () {
break; break;
case 32: case 32:
// Embedded Signature // Embedded Signature
this.embeddedSignature = new packetSignature(); this.embeddedSignature = new signature();
this.embeddedSignature.read(bytes.substr(mypos)); this.embeddedSignature.read(bytes.substr(mypos));
break; break;
default: default:

View File

@ -35,7 +35,7 @@ var util = require('../util'),
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function sym_encrypted_integrity_protected() {
/** The encrypted payload. */ /** The encrypted payload. */
this.encrypted = null; // string this.encrypted = null; // string
/** /**

View File

@ -42,7 +42,7 @@ var type_s2k = require('../type/s2k.js'),
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function sym_encrypted_session_key() {
this.tag = 3; this.tag = 3;
this.sessionKeyEncryptionAlgorithm = null; this.sessionKeyEncryptionAlgorithm = null;
this.sessionKeyAlgorithm = 'aes256'; this.sessionKeyAlgorithm = 'aes256';

View File

@ -32,7 +32,7 @@ var crypto = require('../crypto');
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function symmetrically_encrypted() {
this.encrypted = null; this.encrypted = null;
/** Decrypted packets contained within. /** Decrypted packets contained within.
* @type {module:packet/packetlist} */ * @type {module:packet/packetlist} */

View File

@ -5,6 +5,6 @@
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function trust() {
}; };

View File

@ -41,7 +41,7 @@ var util = require('../util'),
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function user_attribute() {
this.tag = 17; this.tag = 17;
this.attributes = []; this.attributes = [];

View File

@ -32,7 +32,7 @@ var util = require('../util');
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function userid() {
/** A string containing the user id. Usually in the form /** A string containing the user id. Usually in the form
* John Doe <john@example.com> * John Doe <john@example.com>
* @type {String} * @type {String}

View File

@ -31,7 +31,7 @@ var util = require('../util');
/** /**
* @constructor * @constructor
*/ */
module.exports = function () { module.exports = function keyid() {
this.bytes = ''; this.bytes = '';