mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 07:57:13 +02:00
Forward declare namespaces only in JSDoc
Forward declares symbol. This is an indication to the compiler that the symbol may be used in the source yet is not required and may not be provided in compilation. The most common usage of forward declaration is code that takes a type as a function parameter but does not need to require it. By forward declaring instead of requiring, no hard dependency is made, and (if not required elsewhere) the namespace may never be required and thus, not be pulled into the JavaScript binary. If it is required elsewhere, it will be type checked as normal. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=127095620
This commit is contained in:
parent
0e511f0178
commit
7b9752c99d
22 changed files with 47 additions and 0 deletions
|
@ -23,6 +23,8 @@ goog.require('goog.events.EventType');
|
||||||
goog.require('registry.soy.forms');
|
goog.require('registry.soy.forms');
|
||||||
goog.require('registry.util');
|
goog.require('registry.util');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -23,6 +23,9 @@ goog.require('goog.events.KeyCodes');
|
||||||
goog.require('goog.history.EventType');
|
goog.require('goog.history.EventType');
|
||||||
goog.require('registry.util');
|
goog.require('registry.util');
|
||||||
|
|
||||||
|
goog.forwardDeclare('goog.events.KeyEvent');
|
||||||
|
goog.forwardDeclare('registry.Session');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -23,6 +23,8 @@ goog.require('registry.Component');
|
||||||
goog.require('registry.soy.console');
|
goog.require('registry.soy.console');
|
||||||
goog.require('registry.util');
|
goog.require('registry.util');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,6 +24,8 @@ goog.require('goog.events.EventType');
|
||||||
goog.require('goog.events.KeyCodes');
|
goog.require('goog.events.KeyCodes');
|
||||||
goog.require('registry.util');
|
goog.require('registry.util');
|
||||||
|
|
||||||
|
goog.forwardDeclare('goog.events.KeyEvent');
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets the focus on a form field (if it exists).
|
* Sets the focus on a form field (if it exists).
|
||||||
|
|
|
@ -22,6 +22,8 @@ goog.require('goog.events');
|
||||||
goog.require('goog.events.EventHandler');
|
goog.require('goog.events.EventHandler');
|
||||||
goog.require('goog.events.EventType');
|
goog.require('goog.events.EventType');
|
||||||
|
|
||||||
|
goog.forwardDeclare('goog.events.BrowserEvent');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -25,6 +25,8 @@ goog.require('goog.json');
|
||||||
goog.require('goog.object');
|
goog.require('goog.object');
|
||||||
goog.require('goog.style');
|
goog.require('goog.style');
|
||||||
|
|
||||||
|
goog.forwardDeclare('goog.events.BrowserEvent');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -32,6 +32,8 @@ goog.require('registry.registrar.SecuritySettings');
|
||||||
goog.require('registry.registrar.WhoisSettings');
|
goog.require('registry.registrar.WhoisSettings');
|
||||||
goog.require('registry.util');
|
goog.require('registry.util');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.Component');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -19,6 +19,8 @@ goog.require('registry.registrar.XmlResourceComponent');
|
||||||
goog.require('registry.soy.registrar.contact');
|
goog.require('registry.soy.registrar.contact');
|
||||||
goog.require('registry.soy.registrar.contactepp');
|
goog.require('registry.soy.registrar.contactepp');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.registrar.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -26,6 +26,8 @@ goog.require('registry.ResourceComponent');
|
||||||
goog.require('registry.soy.registrar.contacts');
|
goog.require('registry.soy.registrar.contacts');
|
||||||
goog.require('registry.util');
|
goog.require('registry.util');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.registrar.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,6 +20,8 @@ goog.require('registry.Resource');
|
||||||
goog.require('registry.ResourceComponent');
|
goog.require('registry.ResourceComponent');
|
||||||
goog.require('registry.soy.registrar.console');
|
goog.require('registry.soy.registrar.console');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.registrar.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -23,6 +23,8 @@ goog.require('goog.style');
|
||||||
goog.require('registry.Component');
|
goog.require('registry.Component');
|
||||||
goog.require('registry.soy.registrar.console');
|
goog.require('registry.soy.registrar.console');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.registrar.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -21,6 +21,8 @@ goog.require('registry.soy.registrar.domain');
|
||||||
goog.require('registry.soy.registrar.domainepp');
|
goog.require('registry.soy.registrar.domainepp');
|
||||||
goog.require('registry.util');
|
goog.require('registry.util');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.registrar.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,6 +20,8 @@ goog.require('registry.soy.registrar.epp');
|
||||||
goog.require('registry.util');
|
goog.require('registry.util');
|
||||||
goog.require('registry.xml');
|
goog.require('registry.xml');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.registrar.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -18,6 +18,8 @@ goog.require('registry.registrar.XmlResourceComponent');
|
||||||
goog.require('registry.soy.registrar.host');
|
goog.require('registry.soy.registrar.host');
|
||||||
goog.require('registry.soy.registrar.hostepp');
|
goog.require('registry.soy.registrar.hostepp');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.registrar.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -31,6 +31,9 @@ goog.require('registry.soy.registrar.console');
|
||||||
goog.require('registry.soy.registrar.payment');
|
goog.require('registry.soy.registrar.payment');
|
||||||
goog.require('registry.util');
|
goog.require('registry.util');
|
||||||
|
|
||||||
|
goog.forwardDeclare('goog.events.BrowserEvent');
|
||||||
|
goog.forwardDeclare('registry.registrar.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,6 +20,8 @@ goog.require('registry.Resource');
|
||||||
goog.require('registry.ResourceComponent');
|
goog.require('registry.ResourceComponent');
|
||||||
goog.require('registry.soy.registrar.console');
|
goog.require('registry.soy.registrar.console');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.registrar.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -25,6 +25,8 @@ goog.require('registry.Resource');
|
||||||
goog.require('registry.ResourceComponent');
|
goog.require('registry.ResourceComponent');
|
||||||
goog.require('registry.soy.registrar.security');
|
goog.require('registry.soy.registrar.security');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.registrar.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,6 +20,8 @@ goog.require('registry.Resource');
|
||||||
goog.require('registry.ResourceComponent');
|
goog.require('registry.ResourceComponent');
|
||||||
goog.require('registry.soy.registrar.whois');
|
goog.require('registry.soy.registrar.whois');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.registrar.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,6 +20,8 @@ goog.require('goog.dom.classlist');
|
||||||
goog.require('registry.EditItem');
|
goog.require('registry.EditItem');
|
||||||
goog.require('registry.util');
|
goog.require('registry.util');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.registrar.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -17,6 +17,8 @@ goog.provide('registry.Resource');
|
||||||
goog.require('goog.json');
|
goog.require('goog.json');
|
||||||
goog.require('registry.Session');
|
goog.require('registry.Session');
|
||||||
|
|
||||||
|
goog.forwardDeclare('goog.Uri');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -20,6 +20,9 @@ goog.require('registry.EditItem');
|
||||||
goog.require('registry.forms');
|
goog.require('registry.forms');
|
||||||
goog.require('registry.util');
|
goog.require('registry.util');
|
||||||
|
|
||||||
|
goog.forwardDeclare('registry.Resource');
|
||||||
|
goog.forwardDeclare('registry.Console');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -19,6 +19,8 @@ goog.require('goog.net.XhrIo');
|
||||||
goog.require('goog.structs.Map');
|
goog.require('goog.structs.Map');
|
||||||
goog.require('registry.util');
|
goog.require('registry.util');
|
||||||
|
|
||||||
|
goog.forwardDeclare('goog.Uri');
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue