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
*/
module.exports = function () {
module.exports = function localStorage() {
/**
* Reads the config out of the HTML5 local storage

View File

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

View File

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

View File

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

View File

@ -35,7 +35,7 @@ var enums = require('../enums.js'),
/**
* @constructor
*/
module.exports = function () {
module.exports = function one_pass_signature() {
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.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
*/
module.exports = packetlist = function () {
module.exports = function packetlist() {
/** The number of packets contained within the list.
* @readonly
* @type {Integer} */

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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