/*---------------------------------------------------------
 * Copyright (C) Microsoft Corporation. All rights reserved.
 *--------------------------------------------------------*/
"use strict";define("vs/languages/typescript/common/js/angularServiceRewriter",["require","exports","vs/languages/typescript/common/lib/typescriptServices"],function(e,t,n){var r=function(){function e(){}return Object.defineProperty(e.prototype,"name",{get:function(){return"rewriter.angular"},enumerable:!0,configurable:!0}),e.prototype.computeEdits=function(e){for(var t=0,r=e.sourceFile.getFullText();-1!==(t=r.indexOf("$",t));){var i=n.getTokenAtPosition(e.sourceFile,t);if(i&&(t+=i.getFullWidth(),65===i.kind&&i.parent&&131===i.parent.kind)){var s=i.parent,o=s.name.getText();if(o.length>1){var a=" :angular.I"+o[1].toUpperCase()+o.substr(2)+"Service";e.newInsert(s.name.end,a)}}}},e}();t.AngularServiceRewriter=r});