Lines Matching refs:snippet
47 this._snippetStorage = new WebInspector.SnippetStorage("script", "Script snippet #");
120 var snippet = this._snippetStorage.createSnippet();
121 snippet.content = content;
122 return this._addScriptSnippet(snippet);
126 * @param {!WebInspector.Snippet} snippet
129 _addScriptSnippet: function(snippet)
131 var path = this._projectDelegate.addSnippet(snippet.name, new WebInspector.SnippetContentProvider(snippet));
138 this._snippetIdForUISourceCode.put(uiSourceCode, snippet.id);
141 this._uiSourceCodeForSnippetId[snippet.id] = uiSourceCode;
163 var snippet = this._snippetStorage.snippetForId(snippetId);
164 this._snippetStorage.deleteSnippet(snippet);
167 delete this._uiSourceCodeForSnippetId[snippet.id];
169 this._projectDelegate.removeFile(snippet.name);
184 var snippet = this._snippetStorage.snippetForName(name);
185 console.assert(snippet, "Snippet '" + name + "' was not found.");
186 var uiSourceCode = this._uiSourceCodeForSnippetId[snippet.id];
187 console.assert(uiSourceCode, "No uiSourceCode was found for snippet '" + name + "'.");
190 snippet.name = newName;
201 var snippet = this._snippetStorage.snippetForName(name);
202 snippet.content = newContent;
554 * @param {!WebInspector.Snippet} snippet
556 WebInspector.SnippetContentProvider = function(snippet)
558 this._snippet = snippet;