~ohdeno/+junk/closure-compiler-svn-trunk

« back to all changes in this revision

Viewing changes to src/com/google/javascript/rhino/jstype/JSTypeRegistry.java

  • Committer: dimvar at google
  • Date: 2012-09-11 23:17:52 UTC
  • Revision ID: svn-v4:b0f006be-c8cd-11de-a2e8-8d36a3108c74:trunk:2184

Automated g4 rollback

*** Reason for rollback ***

Failures don't seem related to jscompiler. Resubmitting for now.

*** Original change description ***

Automated g4 rollback

*** Reason for rollback ***

Change caused tests to stop building.

*** Original change description ***

New @struct and @dict annotations for constructors.
With these annotations, one can enforce only dot or only bracket access on object properties.

R=nicksantos
DELTA=476  (391 added, 34 deleted, 51 changed)


Revision created by MOE tool push_codebase.
MOE_MIGRATION=5491

Show diffs side-by-side

added added

removed removed

Lines of Context:
1137
1137
   * @param returnType the function's return type
1138
1138
   * @param parameterTypes the parameters' types
1139
1139
   */
1140
 
  public FunctionType createConstructorTypeWithVarArgs(
 
1140
  private FunctionType createConstructorTypeWithVarArgs(
1141
1141
      JSType returnType, JSType... parameterTypes) {
1142
1142
    return createConstructorType(
1143
1143
        null, null, createParametersWithVarArgs(parameterTypes), returnType);