Author: [EMAIL PROTECTED]
Date: Mon Dec  1 15:49:35 2008
New Revision: 4217

Added:
     
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/soyc/impl/SnippetIterator.java
    
(contents, props changed)
       - copied, changed from r4215,  
/changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/soyc/impl/SnippitIterator.java
Removed:
     
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/soyc/impl/SnippitIterator.java
Modified:
     
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/linker/CompilationAnalysis.java
     
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java
     
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationAnalysis.java
     
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/soyc/impl/StoryImpl.java
     
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/linker/soyc/SoycReportLinker.java

Log:
Spelling correction snippit -> snippet.

Suggested by: kprobst


Modified:  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/linker/CompilationAnalysis.java
==============================================================================
---  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/linker/CompilationAnalysis.java
     
(original)
+++  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/linker/CompilationAnalysis.java
     
Mon Dec  1 15:49:35 2008
@@ -30,9 +30,9 @@

    /**
     * Associates a Story and a Range of the output. Instances of this  
interface
-   * are obtained from [EMAIL PROTECTED] CompilationAnalysis#getSnippits()}.
+   * are obtained from [EMAIL PROTECTED] CompilationAnalysis#getSnippets()}.
     */
-  public interface Snippit {
+  public interface Snippet {
      Range getRange();

      Story getStory();
@@ -63,7 +63,7 @@
     * Provides access to the assignments of Stories to Ranges for a  
fragment of
     * the output. The Ranges are guaranteed not to overlap, and may be used  
for
     * exact accounting of bytes. Due to the potential for very large  
data-sets to
-   * be accessible through this method, it is recommended that Snippits  
should
+   * be accessible through this method, it is recommended that Snippets  
should
     * be processed in an incremental fashion that does not require all  
instances
     * to be retained at once.
     */
@@ -73,7 +73,7 @@
     * we were to return a Map for an analysis of N stories, we would also  
need N
     * Ranges, plus the overhead of constructing an ordered Map.
     */
-  public abstract Iterable<Snippit> getSnippits(int fragmentNumber);
+  public abstract Iterable<Snippet> getSnippets(int fragmentNumber);

    /**
     * Returns all Stories.

Modified:  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java
==============================================================================
---  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java
      
(original)
+++  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/linker/impl/SelectionScriptLinker.java
      
Mon Dec  1 15:49:35 2008
@@ -40,7 +40,7 @@

  /**
   * A base class for Linkers that use an external script to boostrap the GWT
- * module. This implementation injects JavaScript snippits into a JS  
program
+ * module. This implementation injects JavaScript Snippets into a JS  
program
   * defined in an external file.
   */
  public abstract class SelectionScriptLinker extends AbstractLinker {
@@ -295,7 +295,7 @@
    }

    /**
-   * Generate a snippit of JavaScript to inject an external stylesheet.
+   * Generate a Snippet of JavaScript to inject an external stylesheet.
     *
     * <pre>
     * if (!__gwt_stylesLoaded['URL']) {

Modified:  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationAnalysis.java
==============================================================================
---  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationAnalysis.java
        
(original)
+++  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/linker/impl/StandardCompilationAnalysis.java
        
Mon Dec  1 15:49:35 2008
@@ -28,7 +28,7 @@
  import com.google.gwt.core.ext.soyc.impl.AbstractMemberWithDependencies;
  import com.google.gwt.core.ext.soyc.impl.MemberFactory;
  import com.google.gwt.core.ext.soyc.impl.OriginImpl;
-import com.google.gwt.core.ext.soyc.impl.SnippitIterator;
+import com.google.gwt.core.ext.soyc.impl.SnippetIterator;
  import com.google.gwt.core.ext.soyc.impl.StandardClassMember;
  import com.google.gwt.core.ext.soyc.impl.StandardFieldMember;
  import com.google.gwt.core.ext.soyc.impl.StandardFunctionMember;
@@ -73,7 +73,7 @@

      /**
       * These are the Stories in the order in which they should be  
presented to
-     * the user via [EMAIL PROTECTED] CompilationAnalysis#getSnippits()}.
+     * the user via [EMAIL PROTECTED] CompilationAnalysis#getSnippets()}.
       */
      Map<Integer, List<StoryImpl>> orderedStories = new HashMap<Integer,  
List<StoryImpl>>();

@@ -183,16 +183,16 @@
    }

    @Override
-  public Iterable<Snippit> getSnippits(int fragment) {
+  public Iterable<Snippet> getSnippets(int fragment) {
      final List<StoryImpl> stories = data.orderedStories.get(fragment);
      if (stories == null) {
        throw new IllegalArgumentException("Unknown fragment id " +  
fragment);
      }

-    return new Iterable<Snippit>() {
-      public Iterator<Snippit> iterator() {
+    return new Iterable<Snippet>() {
+      public Iterator<Snippet> iterator() {
          assert stories != null;
-        return new SnippitIterator(stories);
+        return new SnippetIterator(stories);
        }
      };
    }

Copied:  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/soyc/impl/SnippetIterator.java
  
(from r4215,  
/changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/soyc/impl/SnippitIterator.java)
==============================================================================
---  
/changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/soyc/impl/SnippitIterator.java
     
(original)
+++  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/soyc/impl/SnippetIterator.java
      
Mon Dec  1 15:49:35 2008
@@ -15,17 +15,17 @@
   */
  package com.google.gwt.core.ext.soyc.impl;

-import com.google.gwt.core.ext.linker.CompilationAnalysis.Snippit;
+import com.google.gwt.core.ext.linker.CompilationAnalysis.Snippet;
  import com.google.gwt.core.ext.soyc.Range;
  import com.google.gwt.core.ext.soyc.Story;

  import java.util.Iterator;

  /**
- * Uses a list of StoryImpls present a sequence of Snippits by synthesizing
+ * Uses a list of StoryImpls present a sequence of Snippets by synthesizing
   * Range objects based on the length of the StoryImpls.
   */
-public class SnippitIterator implements Iterator<Snippit> {
+public class SnippetIterator implements Iterator<Snippet> {
    /**
     * An Iterator over the backing object.
     */
@@ -36,7 +36,7 @@
     */
    private int start = 0;

-  public SnippitIterator(Iterable<StoryImpl> stories) {
+  public SnippetIterator(Iterable<StoryImpl> stories) {
      iter = stories.iterator();
    }

@@ -44,12 +44,12 @@
      return iter.hasNext();
    }

-  public Snippit next() {
+  public Snippet next() {
      final StoryImpl story = iter.next();
      final Range range = new Range(start, start + story.getLength());
      start += story.getLength();

-    return new Snippit() {
+    return new Snippet() {
        public Range getRange() {
          return range;
        }

Modified:  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/soyc/impl/StoryImpl.java
==============================================================================
---  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/soyc/impl/StoryImpl.java
    
(original)
+++  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/ext/soyc/impl/StoryImpl.java
    
Mon Dec  1 15:49:35 2008
@@ -33,7 +33,7 @@
   * StoryImpl, we simply store the StoryImpls in order and calculate the  
Range
   * for the StoryImpl based on its length.
   *
- * @see SnippitIterator#next()
+ * @see SnippetIterator#next()
   */
  public class StoryImpl implements Story, Serializable {
    /**

Modified:  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/linker/soyc/SoycReportLinker.java
==============================================================================
---  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/linker/soyc/SoycReportLinker.java
       
(original)
+++  
changes/bobv/soyc-reports-r4205/dev/core/src/com/google/gwt/core/linker/soyc/SoycReportLinker.java
       
Mon Dec  1 15:49:35 2008
@@ -25,7 +25,7 @@
  import com.google.gwt.core.ext.linker.LinkerOrder;
  import com.google.gwt.core.ext.linker.SelectionProperty;
  import com.google.gwt.core.ext.linker.SyntheticArtifact;
-import com.google.gwt.core.ext.linker.CompilationAnalysis.Snippit;
+import com.google.gwt.core.ext.linker.CompilationAnalysis.Snippet;
  import com.google.gwt.core.ext.linker.LinkerOrder.Order;
  import com.google.gwt.core.ext.soyc.ClassMember;
  import com.google.gwt.core.ext.soyc.FieldMember;
@@ -358,9 +358,9 @@
        htmlOut.indentIn();
        curNumIndents++;

-      for (Snippit snippit : report.getSnippits(fragment)) {
-        Range range = snippit.getRange();
-        Story story = snippit.getStory();
+      for (Snippet snippet : report.getSnippets(fragment)) {
+        Range range = snippet.getRange();
+        Story story = snippet.getStory();
          assert storyIds.containsKey(story);
          int storyId = storyIds.get(story);


--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to