|
@@ -4,68 +4,5 @@
|
|
|
* Released under the MIT license
|
|
* Released under the MIT license
|
|
|
* https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
|
|
* https://github.com/Microsoft/vscode/blob/master/LICENSE.txt
|
|
|
*-----------------------------------------------------------*/
|
|
*-----------------------------------------------------------*/
|
|
|
-
|
|
|
|
|
-(function() {
|
|
|
|
|
-var __m = ["vs/languages/razor/common/razorWorker","require","exports","vs/languages/html/common/htmlWorker"];
|
|
|
|
|
-var __M = function(deps) {
|
|
|
|
|
- var result = [];
|
|
|
|
|
- for (var i = 0, len = deps.length; i < len; i++) {
|
|
|
|
|
- result[i] = __m[deps[i]];
|
|
|
|
|
- }
|
|
|
|
|
- return result;
|
|
|
|
|
-};
|
|
|
|
|
-/*---------------------------------------------------------------------------------------------
|
|
|
|
|
- * Copyright (c) Microsoft Corporation. All rights reserved.
|
|
|
|
|
- * Licensed under the MIT License. See License.txt in the project root for license information.
|
|
|
|
|
- *--------------------------------------------------------------------------------------------*/
|
|
|
|
|
-var __extends = (this && this.__extends) || function (d, b) {
|
|
|
|
|
- for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
|
|
|
- function __() { this.constructor = d; }
|
|
|
|
|
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
|
|
|
-};
|
|
|
|
|
-define(__m[0], __M([1,2,3]), function (require, exports, htmlWorker) {
|
|
|
|
|
- "use strict";
|
|
|
|
|
- function getRazorTagProvider() {
|
|
|
|
|
- var customTags = {
|
|
|
|
|
- a: ['asp-action', 'asp-controller', 'asp-fragment', 'asp-host', 'asp-protocol', 'asp-route'],
|
|
|
|
|
- div: ['asp-validation-summary'],
|
|
|
|
|
- form: ['asp-action', 'asp-controller', 'asp-anti-forgery'],
|
|
|
|
|
- input: ['asp-for', 'asp-format'],
|
|
|
|
|
- label: ['asp-for'],
|
|
|
|
|
- select: ['asp-for', 'asp-items'],
|
|
|
|
|
- span: ['asp-validation-for']
|
|
|
|
|
- };
|
|
|
|
|
- return {
|
|
|
|
|
- collectTags: function (collector) {
|
|
|
|
|
- // no extra tags
|
|
|
|
|
- },
|
|
|
|
|
- collectAttributes: function (tag, collector) {
|
|
|
|
|
- if (tag) {
|
|
|
|
|
- var attributes = customTags[tag];
|
|
|
|
|
- if (attributes) {
|
|
|
|
|
- attributes.forEach(function (a) { return collector(a, null); });
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- },
|
|
|
|
|
- collectValues: function (tag, attribute, collector) {
|
|
|
|
|
- // no values
|
|
|
|
|
- }
|
|
|
|
|
- };
|
|
|
|
|
- }
|
|
|
|
|
- exports.getRazorTagProvider = getRazorTagProvider;
|
|
|
|
|
- var RAZORWorker = (function (_super) {
|
|
|
|
|
- __extends(RAZORWorker, _super);
|
|
|
|
|
- function RAZORWorker() {
|
|
|
|
|
- _super.apply(this, arguments);
|
|
|
|
|
- }
|
|
|
|
|
- RAZORWorker.prototype.addCustomTagProviders = function (providers) {
|
|
|
|
|
- // don't call super and don't add the angular provider for now
|
|
|
|
|
- providers.push(getRazorTagProvider());
|
|
|
|
|
- };
|
|
|
|
|
- return RAZORWorker;
|
|
|
|
|
- }(htmlWorker.HTMLWorker));
|
|
|
|
|
- exports.RAZORWorker = RAZORWorker;
|
|
|
|
|
-});
|
|
|
|
|
-
|
|
|
|
|
-}).call(this);
|
|
|
|
|
-//# sourceMappingURL=razorWorker.js.map
|
|
|
|
|
|
|
+(function(){var o=["vs/languages/razor/common/razorWorker","require","exports","vs/languages/html/common/htmlWorker"],t=function(t){for(var r=[],n=0,a=t.length;n<a;n++)r[n]=o[t[n]];return r},r=this&&this.__extends||function(o,t){function r(){this.constructor=o}for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);o.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)};define(o[0],t([1,2,3]),function(o,t,n){"use strict";function a(){var o={a:["asp-action","asp-controller","asp-fragment","asp-host","asp-protocol","asp-route"],div:["asp-validation-summary"],form:["asp-action","asp-controller","asp-anti-forgery"],input:["asp-for","asp-format"],label:["asp-for"],select:["asp-for","asp-items"],span:["asp-validation-for"]};return{collectTags:function(o){},collectAttributes:function(t,r){if(t){var n=o[t];n&&n.forEach(function(o){return r(o,null)})}},collectValues:function(o,t,r){}}}t.getRazorTagProvider=a;var e=function(o){function t(){o.apply(this,arguments)}return r(t,o),t.prototype.addCustomTagProviders=function(o){o.push(a())},t}(n.HTMLWorker);t.RAZORWorker=e})}).call(this);
|
|
|
|
|
+//# sourceMappingURL=../../../../../min-maps/vs/languages/razor/common/razorWorker.js.map
|