ant-monaco
Version:
Ant monaco with vscode-textmate. This module can only run under node runtime
1 lines • 4.12 MB
JavaScript
(function webpackUniversalModuleDefinition(root,factory){if(typeof exports==="object"&&typeof module==="object")module.exports=factory(require("path"),require("electron"),require("fs"),require("child_process"),require("vscode-textmate"),require("crypto"),function webpackLoadOptionalExternalModule(){try{return require("module")}catch(e){}}(),require("os"));else if(typeof define==="function"&&define.amd)define(["path","electron","fs","child_process","vscode-textmate","crypto","module","os"],factory);else if(typeof exports==="object")exports["tools"]=factory(require("path"),require("electron"),require("fs"),require("child_process"),require("vscode-textmate"),require("crypto"),function webpackLoadOptionalExternalModule(){try{return require("module")}catch(e){}}(),require("os"));else root["tools"]=factory(root["path"],root["electron"],root["fs"],root["child_process"],root["vscode-textmate"],root["crypto"],root["module"],root["os"])})(this,function(__WEBPACK_EXTERNAL_MODULE_5__,__WEBPACK_EXTERNAL_MODULE_8__,__WEBPACK_EXTERNAL_MODULE_11__,__WEBPACK_EXTERNAL_MODULE_16__,__WEBPACK_EXTERNAL_MODULE_63__,__WEBPACK_EXTERNAL_MODULE_127__,__WEBPACK_EXTERNAL_MODULE_129__,__WEBPACK_EXTERNAL_MODULE_130__){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId]){return installedModules[moduleId].exports}var module=installedModules[moduleId]={i:moduleId,l:false,exports:{}};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.l=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.i=function(value){return value};__webpack_require__.d=function(exports,name,getter){if(!__webpack_require__.o(exports,name)){Object.defineProperty(exports,name,{configurable:false,enumerable:true,get:getter})}};__webpack_require__.n=function(module){var getter=module&&module.__esModule?function getDefault(){return module["default"]}:function getModuleExports(){return module};__webpack_require__.d(getter,"a",getter);return getter};__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)};__webpack_require__.p="";return __webpack_require__(__webpack_require__.s=73)}([function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(){var extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(d,b){d.__proto__=b}||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p]};return function(d,b){extendStatics(d,b);function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)}}();Object.defineProperty(exports,"__esModule",{value:true});var NodeType;(function(NodeType){NodeType[NodeType["Undefined"]=0]="Undefined";NodeType[NodeType["Identifier"]=1]="Identifier";NodeType[NodeType["Stylesheet"]=2]="Stylesheet";NodeType[NodeType["Ruleset"]=3]="Ruleset";NodeType[NodeType["Selector"]=4]="Selector";NodeType[NodeType["SimpleSelector"]=5]="SimpleSelector";NodeType[NodeType["SelectorInterpolation"]=6]="SelectorInterpolation";NodeType[NodeType["SelectorCombinator"]=7]="SelectorCombinator";NodeType[NodeType["SelectorCombinatorParent"]=8]="SelectorCombinatorParent";NodeType[NodeType["SelectorCombinatorSibling"]=9]="SelectorCombinatorSibling";NodeType[NodeType["SelectorCombinatorAllSiblings"]=10]="SelectorCombinatorAllSiblings";NodeType[NodeType["SelectorCombinatorShadowPiercingDescendant"]=11]="SelectorCombinatorShadowPiercingDescendant";NodeType[NodeType["Page"]=12]="Page";NodeType[NodeType["PageBoxMarginBox"]=13]="PageBoxMarginBox";NodeType[NodeType["ClassSelector"]=14]="ClassSelector";NodeType[NodeType["IdentifierSelector"]=15]="IdentifierSelector";NodeType[NodeType["ElementNameSelector"]=16]="ElementNameSelector";NodeType[NodeType["PseudoSelector"]=17]="PseudoSelector";NodeType[NodeType["AttributeSelector"]=18]="AttributeSelector";NodeType[NodeType["Declaration"]=19]="Declaration";NodeType[NodeType["Declarations"]=20]="Declarations";NodeType[NodeType["Property"]=21]="Property";NodeType[NodeType["Expression"]=22]="Expression";NodeType[NodeType["BinaryExpression"]=23]="BinaryExpression";NodeType[NodeType["Term"]=24]="Term";NodeType[NodeType["Operator"]=25]="Operator";NodeType[NodeType["Value"]=26]="Value";NodeType[NodeType["StringLiteral"]=27]="StringLiteral";NodeType[NodeType["URILiteral"]=28]="URILiteral";NodeType[NodeType["EscapedValue"]=29]="EscapedValue";NodeType[NodeType["Function"]=30]="Function";NodeType[NodeType["NumericValue"]=31]="NumericValue";NodeType[NodeType["HexColorValue"]=32]="HexColorValue";NodeType[NodeType["MixinDeclaration"]=33]="MixinDeclaration";NodeType[NodeType["MixinReference"]=34]="MixinReference";NodeType[NodeType["VariableName"]=35]="VariableName";NodeType[NodeType["VariableDeclaration"]=36]="VariableDeclaration";NodeType[NodeType["Prio"]=37]="Prio";NodeType[NodeType["Interpolation"]=38]="Interpolation";NodeType[NodeType["NestedProperties"]=39]="NestedProperties";NodeType[NodeType["ExtendsReference"]=40]="ExtendsReference";NodeType[NodeType["SelectorPlaceholder"]=41]="SelectorPlaceholder";NodeType[NodeType["Debug"]=42]="Debug";NodeType[NodeType["If"]=43]="If";NodeType[NodeType["Else"]=44]="Else";NodeType[NodeType["For"]=45]="For";NodeType[NodeType["Each"]=46]="Each";NodeType[NodeType["While"]=47]="While";NodeType[NodeType["MixinContent"]=48]="MixinContent";NodeType[NodeType["Media"]=49]="Media";NodeType[NodeType["Keyframe"]=50]="Keyframe";NodeType[NodeType["FontFace"]=51]="FontFace";NodeType[NodeType["Import"]=52]="Import";NodeType[NodeType["Namespace"]=53]="Namespace";NodeType[NodeType["Invocation"]=54]="Invocation";NodeType[NodeType["FunctionDeclaration"]=55]="FunctionDeclaration";NodeType[NodeType["ReturnStatement"]=56]="ReturnStatement";NodeType[NodeType["MediaQuery"]=57]="MediaQuery";NodeType[NodeType["FunctionParameter"]=58]="FunctionParameter";NodeType[NodeType["FunctionArgument"]=59]="FunctionArgument";NodeType[NodeType["KeyframeSelector"]=60]="KeyframeSelector";NodeType[NodeType["ViewPort"]=61]="ViewPort";NodeType[NodeType["Document"]=62]="Document";NodeType[NodeType["AtApplyRule"]=63]="AtApplyRule";NodeType[NodeType["CustomPropertyDeclaration"]=64]="CustomPropertyDeclaration";NodeType[NodeType["CustomPropertySet"]=65]="CustomPropertySet";NodeType[NodeType["ListEntry"]=66]="ListEntry"})(NodeType=exports.NodeType||(exports.NodeType={}));var ReferenceType;(function(ReferenceType){ReferenceType[ReferenceType["Mixin"]=0]="Mixin";ReferenceType[ReferenceType["Rule"]=1]="Rule";ReferenceType[ReferenceType["Variable"]=2]="Variable";ReferenceType[ReferenceType["Function"]=3]="Function";ReferenceType[ReferenceType["Keyframe"]=4]="Keyframe";ReferenceType[ReferenceType["Unknown"]=5]="Unknown"})(ReferenceType=exports.ReferenceType||(exports.ReferenceType={}));function getNodeAtOffset(node,offset){var candidate=null;if(!node||offset<node.offset||offset>node.end){return null}node.accept(function(node){if(node.offset===-1&&node.length===-1){return true}if(node.offset<=offset&&node.end>=offset){if(!candidate){candidate=node}else if(node.length<=candidate.length){candidate=node}return true}return false});return candidate}exports.getNodeAtOffset=getNodeAtOffset;function getNodePath(node,offset){var candidate=getNodeAtOffset(node,offset),path=[];while(candidate){path.unshift(candidate);candidate=candidate.parent}return path}exports.getNodePath=getNodePath;function getParentDeclaration(node){var decl=node.findParent(NodeType.Declaration);if(decl&&decl.getValue()&&decl.getValue().encloses(node)){return decl}return null}exports.getParentDeclaration=getParentDeclaration;var Node=function(){function Node(offset,len,nodeType){if(offset===void 0){offset=-1}if(len===void 0){len=-1}this.parent=null;this.offset=offset;this.length=len;if(nodeType){this.nodeType=nodeType}}Object.defineProperty(Node.prototype,"end",{get:function(){return this.offset+this.length},enumerable:true,configurable:true});Object.defineProperty(Node.prototype,"type",{get:function(){return this.nodeType||NodeType.Undefined},set:function(type){this.nodeType=type},enumerable:true,configurable:true});Node.prototype.getTextProvider=function(){var node=this;while(node&&!node.textProvider){node=node.parent}if(node){return node.textProvider}return function(){return"unknown"}};Node.prototype.getText=function(){return this.getTextProvider()(this.offset,this.length)};Node.prototype.matches=function(str){return this.length===str.length&&this.getTextProvider()(this.offset,this.length)===str};Node.prototype.startsWith=function(str){return this.length>=str.length&&this.getTextProvider()(this.offset,str.length)===str};Node.prototype.endsWith=function(str){return this.length>=str.length&&this.getTextProvider()(this.end-str.length,str.length)===str};Node.prototype.accept=function(visitor){if(typeof visitor!=="function"){visitor=visitor.visitNode.bind(visitor)}if(visitor(this)&&this.children){this.children.forEach(function(child){child.accept(visitor)})}};Node.prototype.adoptChild=function(node,index){if(index===void 0){index=-1}if(node.parent&&node.parent.children){var idx=node.parent.children.indexOf(node);if(idx>=0){node.parent.children.splice(idx,1)}}node.parent=this;var children=this.children;if(!children){children=this.children=[]}if(index!==-1){children.splice(index,0,node)}else{children.push(node)}return node};Node.prototype.attachTo=function(parent,index){if(index===void 0){index=-1}if(parent){parent.adoptChild(this,index)}return this};Node.prototype.collectIssues=function(results){if(this.issues){results.push.apply(results,this.issues)}};Node.prototype.addIssue=function(issue){if(!this.issues){this.issues=[]}this.issues.push(issue)};Node.prototype.hasIssue=function(rule){return this.issues&&this.issues.some(function(i){return i.getRule()===rule})};Node.prototype.isErroneous=function(recursive){if(recursive===void 0){recursive=false}if(this.issues&&this.issues.length>0){return true}return recursive&&this.children&&this.children.some(function(c){return c.isErroneous(true)})};Node.prototype.setNode=function(field,node,index){if(index===void 0){index=-1}if(node){node.attachTo(this,index);this[field]=node;return true}return false};Node.prototype.addChild=function(node){if(node){if(!this.children){this.children=[]}node.attachTo(this);this.updateOffsetAndLength(node);return true}return false};Node.prototype.updateOffsetAndLength=function(node){if(node.offset<this.offset||this.offset===-1){this.offset=node.offset}var nodeEnd=node.end;if(nodeEnd>this.end||this.length===-1){this.length=nodeEnd-this.offset}};Node.prototype.hasChildren=function(){return this.children&&this.children.length>0};Node.prototype.getChildren=function(){return this.children?this.children.slice(0):[]};Node.prototype.getChild=function(index){if(this.children&&index<this.children.length){return this.children[index]}return null};Node.prototype.addChildren=function(nodes){var _this=this;nodes.forEach(function(node){return _this.addChild(node)})};Node.prototype.findFirstChildBeforeOffset=function(offset){if(this.children){var current=null;for(var i=this.children.length-1;i>=0;i--){current=this.children[i];if(current.offset<=offset){return current}}}return null};Node.prototype.findChildAtOffset=function(offset,goDeep){var current=this.findFirstChildBeforeOffset(offset);if(current&¤t.end>=offset){if(goDeep){return current.findChildAtOffset(offset,true)||current}return current}return null};Node.prototype.encloses=function(candidate){return this.offset<=candidate.offset&&this.offset+this.length>=candidate.offset+candidate.length};Node.prototype.getParent=function(){var result=this.parent;while(result instanceof Nodelist){result=result.parent}return result};Node.prototype.findParent=function(type){var result=this;while(result&&result.type!==type){result=result.parent}return result};Node.prototype.setData=function(key,value){if(!this.options){this.options={}}this.options[key]=value};Node.prototype.getData=function(key){if(!this.options||!this.options.hasOwnProperty(key)){return null}return this.options[key]};return Node}();exports.Node=Node;var Nodelist=function(_super){__extends(Nodelist,_super);function Nodelist(parent,index){if(index===void 0){index=-1}var _this=_super.call(this,-1,-1)||this;_this.attachTo(parent,index);_this.offset=-1;_this.length=-1;return _this}return Nodelist}(Node);exports.Nodelist=Nodelist;var Identifier=function(_super){__extends(Identifier,_super);function Identifier(offset,length){var _this=_super.call(this,offset,length)||this;_this.isCustomProperty=false;return _this}Object.defineProperty(Identifier.prototype,"type",{get:function(){return NodeType.Identifier},enumerable:true,configurable:true});Identifier.prototype.containsInterpolation=function(){return this.hasChildren()};return Identifier}(Node);exports.Identifier=Identifier;var Stylesheet=function(_super){__extends(Stylesheet,_super);function Stylesheet(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Stylesheet.prototype,"type",{get:function(){return NodeType.Stylesheet},enumerable:true,configurable:true});Stylesheet.prototype.setName=function(value){this.name=value};return Stylesheet}(Node);exports.Stylesheet=Stylesheet;var Declarations=function(_super){__extends(Declarations,_super);function Declarations(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Declarations.prototype,"type",{get:function(){return NodeType.Declarations},enumerable:true,configurable:true});return Declarations}(Node);exports.Declarations=Declarations;var BodyDeclaration=function(_super){__extends(BodyDeclaration,_super);function BodyDeclaration(offset,length){return _super.call(this,offset,length)||this}BodyDeclaration.prototype.getDeclarations=function(){return this.declarations};BodyDeclaration.prototype.setDeclarations=function(decls){return this.setNode("declarations",decls)};return BodyDeclaration}(Node);exports.BodyDeclaration=BodyDeclaration;var RuleSet=function(_super){__extends(RuleSet,_super);function RuleSet(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(RuleSet.prototype,"type",{get:function(){return NodeType.Ruleset},enumerable:true,configurable:true});RuleSet.prototype.getSelectors=function(){if(!this.selectors){this.selectors=new Nodelist(this)}return this.selectors};RuleSet.prototype.isNested=function(){return this.parent&&this.parent.findParent(NodeType.Ruleset)!==null};return RuleSet}(BodyDeclaration);exports.RuleSet=RuleSet;var Selector=function(_super){__extends(Selector,_super);function Selector(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Selector.prototype,"type",{get:function(){return NodeType.Selector},enumerable:true,configurable:true});return Selector}(Node);exports.Selector=Selector;var SimpleSelector=function(_super){__extends(SimpleSelector,_super);function SimpleSelector(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(SimpleSelector.prototype,"type",{get:function(){return NodeType.SimpleSelector},enumerable:true,configurable:true});return SimpleSelector}(Node);exports.SimpleSelector=SimpleSelector;var AtApplyRule=function(_super){__extends(AtApplyRule,_super);function AtApplyRule(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(AtApplyRule.prototype,"type",{get:function(){return NodeType.AtApplyRule},enumerable:true,configurable:true});AtApplyRule.prototype.setIdentifier=function(node){return this.setNode("identifier",node,0)};AtApplyRule.prototype.getIdentifier=function(){return this.identifier};AtApplyRule.prototype.getName=function(){return this.identifier?this.identifier.getText():""};return AtApplyRule}(Node);exports.AtApplyRule=AtApplyRule;var AbstractDeclaration=function(_super){__extends(AbstractDeclaration,_super);function AbstractDeclaration(offset,length){return _super.call(this,offset,length)||this}return AbstractDeclaration}(Node);exports.AbstractDeclaration=AbstractDeclaration;var CustomPropertyDeclaration=function(_super){__extends(CustomPropertyDeclaration,_super);function CustomPropertyDeclaration(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(CustomPropertyDeclaration.prototype,"type",{get:function(){return NodeType.CustomPropertyDeclaration},enumerable:true,configurable:true});CustomPropertyDeclaration.prototype.setProperty=function(node){return this.setNode("property",node)};CustomPropertyDeclaration.prototype.getProperty=function(){return this.property};CustomPropertyDeclaration.prototype.setValue=function(value){return this.setNode("value",value)};CustomPropertyDeclaration.prototype.getValue=function(){return this.value};CustomPropertyDeclaration.prototype.setPropertySet=function(value){return this.setNode("propertySet",value)};CustomPropertyDeclaration.prototype.getPropertySet=function(){return this.propertySet};return CustomPropertyDeclaration}(AbstractDeclaration);exports.CustomPropertyDeclaration=CustomPropertyDeclaration;var CustomPropertySet=function(_super){__extends(CustomPropertySet,_super);function CustomPropertySet(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(CustomPropertySet.prototype,"type",{get:function(){return NodeType.CustomPropertySet},enumerable:true,configurable:true});return CustomPropertySet}(BodyDeclaration);exports.CustomPropertySet=CustomPropertySet;var Declaration=function(_super){__extends(Declaration,_super);function Declaration(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Declaration.prototype,"type",{get:function(){return NodeType.Declaration},enumerable:true,configurable:true});Declaration.prototype.setProperty=function(node){return this.setNode("property",node)};Declaration.prototype.getProperty=function(){return this.property};Declaration.prototype.getFullPropertyName=function(){var propertyName=this.property?this.property.getName():"unknown";if(this.parent instanceof Declarations&&this.parent.getParent()instanceof NestedProperties){var parentDecl=this.parent.getParent().getParent();if(parentDecl instanceof Declaration){return parentDecl.getFullPropertyName()+propertyName}}return propertyName};Declaration.prototype.getNonPrefixedPropertyName=function(){var propertyName=this.getFullPropertyName();if(propertyName&&propertyName.charAt(0)==="-"){var vendorPrefixEnd=propertyName.indexOf("-",1);if(vendorPrefixEnd!==-1){return propertyName.substring(vendorPrefixEnd+1)}}return propertyName};Declaration.prototype.setValue=function(value){return this.setNode("value",value)};Declaration.prototype.getValue=function(){return this.value};Declaration.prototype.setNestedProperties=function(value){return this.setNode("nestedProprties",value)};Declaration.prototype.getNestedProperties=function(){return this.nestedProprties};return Declaration}(AbstractDeclaration);exports.Declaration=Declaration;var Property=function(_super){__extends(Property,_super);function Property(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Property.prototype,"type",{get:function(){return NodeType.Property},enumerable:true,configurable:true});Property.prototype.setIdentifier=function(value){return this.setNode("identifier",value)};Property.prototype.getIdentifier=function(){return this.identifier};Property.prototype.getName=function(){return this.getText()};Property.prototype.isCustomProperty=function(){return this.identifier.isCustomProperty};return Property}(Node);exports.Property=Property;var Invocation=function(_super){__extends(Invocation,_super);function Invocation(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Invocation.prototype,"type",{get:function(){return NodeType.Invocation},enumerable:true,configurable:true});Invocation.prototype.getArguments=function(){if(!this.arguments){this.arguments=new Nodelist(this)}return this.arguments};return Invocation}(Node);exports.Invocation=Invocation;var Function=function(_super){__extends(Function,_super);function Function(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Function.prototype,"type",{get:function(){return NodeType.Function},enumerable:true,configurable:true});Function.prototype.setIdentifier=function(node){return this.setNode("identifier",node,0)};Function.prototype.getIdentifier=function(){return this.identifier};Function.prototype.getName=function(){return this.identifier?this.identifier.getText():""};return Function}(Invocation);exports.Function=Function;var FunctionParameter=function(_super){__extends(FunctionParameter,_super);function FunctionParameter(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(FunctionParameter.prototype,"type",{get:function(){return NodeType.FunctionParameter},enumerable:true,configurable:true});FunctionParameter.prototype.setIdentifier=function(node){return this.setNode("identifier",node,0)};FunctionParameter.prototype.getIdentifier=function(){return this.identifier};FunctionParameter.prototype.getName=function(){return this.identifier?this.identifier.getText():""};FunctionParameter.prototype.setDefaultValue=function(node){return this.setNode("defaultValue",node,0)};FunctionParameter.prototype.getDefaultValue=function(){return this.defaultValue};return FunctionParameter}(Node);exports.FunctionParameter=FunctionParameter;var FunctionArgument=function(_super){__extends(FunctionArgument,_super);function FunctionArgument(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(FunctionArgument.prototype,"type",{get:function(){return NodeType.FunctionArgument},enumerable:true,configurable:true});FunctionArgument.prototype.setIdentifier=function(node){return this.setNode("identifier",node,0)};FunctionArgument.prototype.getIdentifier=function(){return this.identifier};FunctionArgument.prototype.getName=function(){return this.identifier?this.identifier.getText():""};FunctionArgument.prototype.setValue=function(node){return this.setNode("value",node,0)};FunctionArgument.prototype.getValue=function(){return this.value};return FunctionArgument}(Node);exports.FunctionArgument=FunctionArgument;var IfStatement=function(_super){__extends(IfStatement,_super);function IfStatement(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(IfStatement.prototype,"type",{get:function(){return NodeType.If},enumerable:true,configurable:true});IfStatement.prototype.setExpression=function(node){return this.setNode("expression",node,0)};IfStatement.prototype.setElseClause=function(elseClause){return this.setNode("elseClause",elseClause)};return IfStatement}(BodyDeclaration);exports.IfStatement=IfStatement;var ForStatement=function(_super){__extends(ForStatement,_super);function ForStatement(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(ForStatement.prototype,"type",{get:function(){return NodeType.For},enumerable:true,configurable:true});ForStatement.prototype.setVariable=function(node){return this.setNode("variable",node,0)};return ForStatement}(BodyDeclaration);exports.ForStatement=ForStatement;var EachStatement=function(_super){__extends(EachStatement,_super);function EachStatement(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(EachStatement.prototype,"type",{get:function(){return NodeType.Each},enumerable:true,configurable:true});EachStatement.prototype.getVariables=function(){if(!this.variables){this.variables=new Nodelist(this)}return this.variables};return EachStatement}(BodyDeclaration);exports.EachStatement=EachStatement;var WhileStatement=function(_super){__extends(WhileStatement,_super);function WhileStatement(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(WhileStatement.prototype,"type",{get:function(){return NodeType.While},enumerable:true,configurable:true});return WhileStatement}(BodyDeclaration);exports.WhileStatement=WhileStatement;var ElseStatement=function(_super){__extends(ElseStatement,_super);function ElseStatement(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(ElseStatement.prototype,"type",{get:function(){return NodeType.Else},enumerable:true,configurable:true});return ElseStatement}(BodyDeclaration);exports.ElseStatement=ElseStatement;var FunctionDeclaration=function(_super){__extends(FunctionDeclaration,_super);function FunctionDeclaration(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(FunctionDeclaration.prototype,"type",{get:function(){return NodeType.FunctionDeclaration},enumerable:true,configurable:true});FunctionDeclaration.prototype.setIdentifier=function(node){return this.setNode("identifier",node,0)};FunctionDeclaration.prototype.getIdentifier=function(){return this.identifier};FunctionDeclaration.prototype.getName=function(){return this.identifier?this.identifier.getText():""};FunctionDeclaration.prototype.getParameters=function(){if(!this.parameters){this.parameters=new Nodelist(this)}return this.parameters};return FunctionDeclaration}(BodyDeclaration);exports.FunctionDeclaration=FunctionDeclaration;var ViewPort=function(_super){__extends(ViewPort,_super);function ViewPort(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(ViewPort.prototype,"type",{get:function(){return NodeType.ViewPort},enumerable:true,configurable:true});return ViewPort}(BodyDeclaration);exports.ViewPort=ViewPort;var FontFace=function(_super){__extends(FontFace,_super);function FontFace(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(FontFace.prototype,"type",{get:function(){return NodeType.FontFace},enumerable:true,configurable:true});return FontFace}(BodyDeclaration);exports.FontFace=FontFace;var NestedProperties=function(_super){__extends(NestedProperties,_super);function NestedProperties(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(NestedProperties.prototype,"type",{get:function(){return NodeType.NestedProperties},enumerable:true,configurable:true});return NestedProperties}(BodyDeclaration);exports.NestedProperties=NestedProperties;var Keyframe=function(_super){__extends(Keyframe,_super);function Keyframe(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Keyframe.prototype,"type",{get:function(){return NodeType.Keyframe},enumerable:true,configurable:true});Keyframe.prototype.setKeyword=function(keyword){return this.setNode("keyword",keyword,0)};Keyframe.prototype.getKeyword=function(){return this.keyword};Keyframe.prototype.setIdentifier=function(node){return this.setNode("identifier",node,0)};Keyframe.prototype.getIdentifier=function(){return this.identifier};Keyframe.prototype.getName=function(){return this.identifier?this.identifier.getText():""};return Keyframe}(BodyDeclaration);exports.Keyframe=Keyframe;var KeyframeSelector=function(_super){__extends(KeyframeSelector,_super);function KeyframeSelector(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(KeyframeSelector.prototype,"type",{get:function(){return NodeType.KeyframeSelector},enumerable:true,configurable:true});return KeyframeSelector}(BodyDeclaration);exports.KeyframeSelector=KeyframeSelector;var Import=function(_super){__extends(Import,_super);function Import(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Import.prototype,"type",{get:function(){return NodeType.Import},enumerable:true,configurable:true});Import.prototype.setMedialist=function(node){if(node){node.attachTo(this);this.medialist=node;return true}return false};return Import}(Node);exports.Import=Import;var Namespace=function(_super){__extends(Namespace,_super);function Namespace(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Namespace.prototype,"type",{get:function(){return NodeType.Namespace},enumerable:true,configurable:true});return Namespace}(Node);exports.Namespace=Namespace;var Media=function(_super){__extends(Media,_super);function Media(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Media.prototype,"type",{get:function(){return NodeType.Media},enumerable:true,configurable:true});return Media}(BodyDeclaration);exports.Media=Media;var Document=function(_super){__extends(Document,_super);function Document(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Document.prototype,"type",{get:function(){return NodeType.Document},enumerable:true,configurable:true});return Document}(BodyDeclaration);exports.Document=Document;var Medialist=function(_super){__extends(Medialist,_super);function Medialist(offset,length){return _super.call(this,offset,length)||this}Medialist.prototype.getMediums=function(){if(!this.mediums){this.mediums=new Nodelist(this)}return this.mediums};return Medialist}(Node);exports.Medialist=Medialist;var MediaQuery=function(_super){__extends(MediaQuery,_super);function MediaQuery(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(MediaQuery.prototype,"type",{get:function(){return NodeType.MediaQuery},enumerable:true,configurable:true});return MediaQuery}(Node);exports.MediaQuery=MediaQuery;var Page=function(_super){__extends(Page,_super);function Page(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Page.prototype,"type",{get:function(){return NodeType.Page},enumerable:true,configurable:true});return Page}(BodyDeclaration);exports.Page=Page;var PageBoxMarginBox=function(_super){__extends(PageBoxMarginBox,_super);function PageBoxMarginBox(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(PageBoxMarginBox.prototype,"type",{get:function(){return NodeType.PageBoxMarginBox},enumerable:true,configurable:true});return PageBoxMarginBox}(BodyDeclaration);exports.PageBoxMarginBox=PageBoxMarginBox;var Expression=function(_super){__extends(Expression,_super);function Expression(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Expression.prototype,"type",{get:function(){return NodeType.Expression},enumerable:true,configurable:true});return Expression}(Node);exports.Expression=Expression;var BinaryExpression=function(_super){__extends(BinaryExpression,_super);function BinaryExpression(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(BinaryExpression.prototype,"type",{get:function(){return NodeType.BinaryExpression},enumerable:true,configurable:true});BinaryExpression.prototype.setLeft=function(left){return this.setNode("left",left)};BinaryExpression.prototype.getLeft=function(){return this.left};BinaryExpression.prototype.setRight=function(right){return this.setNode("right",right)};BinaryExpression.prototype.getRight=function(){return this.right};BinaryExpression.prototype.setOperator=function(value){return this.setNode("operator",value)};BinaryExpression.prototype.getOperator=function(){return this.operator};return BinaryExpression}(Node);exports.BinaryExpression=BinaryExpression;var Term=function(_super){__extends(Term,_super);function Term(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Term.prototype,"type",{get:function(){return NodeType.Term},enumerable:true,configurable:true});Term.prototype.setOperator=function(value){return this.setNode("operator",value)};Term.prototype.getOperator=function(){return this.operator};Term.prototype.setExpression=function(value){return this.setNode("expression",value)};Term.prototype.getExpression=function(){return this.expression};return Term}(Node);exports.Term=Term;var Operator=function(_super){__extends(Operator,_super);function Operator(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Operator.prototype,"type",{get:function(){return NodeType.Operator},enumerable:true,configurable:true});return Operator}(Node);exports.Operator=Operator;var HexColorValue=function(_super){__extends(HexColorValue,_super);function HexColorValue(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(HexColorValue.prototype,"type",{get:function(){return NodeType.HexColorValue},enumerable:true,configurable:true});return HexColorValue}(Node);exports.HexColorValue=HexColorValue;var NumericValue=function(_super){__extends(NumericValue,_super);function NumericValue(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(NumericValue.prototype,"type",{get:function(){return NodeType.NumericValue},enumerable:true,configurable:true});NumericValue.prototype.getValue=function(){var raw=this.getText();var unitIdx=0,code,_dot=".".charCodeAt(0),_0="0".charCodeAt(0),_9="9".charCodeAt(0);for(var i=0,len=raw.length;i<len;i++){code=raw.charCodeAt(i);if(!(_0<=code&&code<=_9||code===_dot)){break}unitIdx+=1}return{value:raw.substring(0,unitIdx),unit:unitIdx<raw.length?raw.substring(unitIdx):undefined}};return NumericValue}(Node);exports.NumericValue=NumericValue;var VariableDeclaration=function(_super){__extends(VariableDeclaration,_super);function VariableDeclaration(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(VariableDeclaration.prototype,"type",{get:function(){return NodeType.VariableDeclaration},enumerable:true,configurable:true});VariableDeclaration.prototype.setVariable=function(node){if(node){node.attachTo(this);this.variable=node;return true}return false};VariableDeclaration.prototype.getVariable=function(){return this.variable};VariableDeclaration.prototype.getName=function(){return this.variable?this.variable.getName():""};VariableDeclaration.prototype.setValue=function(node){if(node){node.attachTo(this);this.value=node;return true}return false};VariableDeclaration.prototype.getValue=function(){return this.value};return VariableDeclaration}(AbstractDeclaration);exports.VariableDeclaration=VariableDeclaration;var Interpolation=function(_super){__extends(Interpolation,_super);function Interpolation(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Interpolation.prototype,"type",{get:function(){return NodeType.Interpolation},enumerable:true,configurable:true});return Interpolation}(Node);exports.Interpolation=Interpolation;var Variable=function(_super){__extends(Variable,_super);function Variable(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(Variable.prototype,"type",{get:function(){return NodeType.VariableName},enumerable:true,configurable:true});Variable.prototype.getName=function(){return this.getText()};return Variable}(Node);exports.Variable=Variable;var ExtendsReference=function(_super){__extends(ExtendsReference,_super);function ExtendsReference(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(ExtendsReference.prototype,"type",{get:function(){return NodeType.ExtendsReference},enumerable:true,configurable:true});ExtendsReference.prototype.setSelector=function(node){return this.setNode("selector",node,0)};ExtendsReference.prototype.getSelector=function(){return this.selector};ExtendsReference.prototype.getName=function(){return this.selector?this.selector.getText():""};return ExtendsReference}(Node);exports.ExtendsReference=ExtendsReference;var MixinReference=function(_super){__extends(MixinReference,_super);function MixinReference(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(MixinReference.prototype,"type",{get:function(){return NodeType.MixinReference},enumerable:true,configurable:true});MixinReference.prototype.getNamespaces=function(){if(!this.namespaces){this.namespaces=new Nodelist(this)}return this.namespaces};MixinReference.prototype.setIdentifier=function(node){return this.setNode("identifier",node,0)};MixinReference.prototype.getIdentifier=function(){return this.identifier};MixinReference.prototype.getName=function(){return this.identifier?this.identifier.getText():""};MixinReference.prototype.getArguments=function(){if(!this.arguments){this.arguments=new Nodelist(this)}return this.arguments};MixinReference.prototype.setContent=function(node){return this.setNode("content",node)};MixinReference.prototype.getContent=function(){return this.content};return MixinReference}(Node);exports.MixinReference=MixinReference;var MixinDeclaration=function(_super){__extends(MixinDeclaration,_super);function MixinDeclaration(offset,length){return _super.call(this,offset,length)||this}Object.defineProperty(MixinDeclaration.prototype,"type",{get:function(){return NodeType.MixinDeclaration},enumerable:true,configurable:true});MixinDeclaration.prototype.setIdentifier=function(node){return this.setNode("identifier",node,0)};MixinDeclaration.prototype.getIdentifier=function(){return this.identifier};MixinDeclaration.prototype.getName=function(){return this.identifier?this.identifier.getText():""};MixinDeclaration.prototype.getParameters=function(){if(!this.parameters){this.parameters=new Nodelist(this)}return this.parameters};MixinDeclaration.prototype.setGuard=function(node){if(node){node.attachTo(this);this.guard=node}return false};return MixinDeclaration}(BodyDeclaration);exports.MixinDeclaration=MixinDeclaration;var LessGuard=function(_super){__extends(LessGuard,_super);function LessGuard(){return _super!==null&&_super.apply(this,arguments)||this}LessGuard.prototype.getConditions=function(){if(!this.conditions){this.conditions=new Nodelist(this)}return this.conditions};return LessGuard}(Node);exports.LessGuard=LessGuard;var GuardCondition=function(_super){__extends(GuardCondition,_super);function GuardCondition(){return _super!==null&&_super.apply(this,arguments)||this}GuardCondition.prototype.setVariable=function(node){return this.setNode("variable",node)};return GuardCondition}(Node);exports.GuardCondition=GuardCondition;var Level;(function(Level){Level[Level["Ignore"]=1]="Ignore";Level[Level["Warning"]=2]="Warning";Level[Level["Error"]=4]="Error"})(Level=exports.Level||(exports.Level={}));var Marker=function(){function Marker(node,rule,level,message,offset,length){if(offset===void 0){offset=node.offset}if(length===void 0){length=node.length}this.node=node;this.rule=rule;this.level=level;this.message=message||rule.message;this.offset=offset;this.length=length}Marker.prototype.getRule=function(){return this.rule};Marker.prototype.getLevel=function(){return this.level};Marker.prototype.getOffset=function(){return this.offset};Marker.prototype.getLength=function(){return this.length};Marker.prototype.getNode=function(){return this.node};Marker.prototype.getMessage=function(){return this.message};return Marker}();exports.Marker=Marker;var ParseErrorCollector=function(){function ParseErrorCollector(){this.entries=[]}ParseErrorCollector.entries=function(node){var visitor=new ParseErrorCollector;node.accept(visitor);return visitor.entries};ParseErrorCollector.prototype.visitNode=function(node){if(node.isErroneous()){node.collectIssues(this.entries)}return true};return ParseErrorCollector}();exports.ParseErrorCollector=ParseErrorCollector},,,function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var path=__webpack_require__(5);var fs=__webpack_require__(11);var _options={locale:undefined,cacheLanguageResolution:true};var _isPseudo=false;var _resolvedLanguage=null;var toString=Object.prototype.toString;function isDefined(value){return typeof value!=="undefined"}function isNumber(value){return toString.call(value)==="[object Number]"}function isString(value){return toString.call(value)==="[object String]"}function isBoolean(value){return value===true||value===false}function format(message,args){var result;if(_isPseudo){message="["+message.replace(/[aouei]/g,"$&$&")+"]"}if(args.length===0){result=message}else{result=message.replace(/\{(\d+)\}/g,function(match,rest){var index=rest[0];return typeof args[index]!=="undefined"?args[index]:match})}return result}function createScopedLocalizeFunction(messages){return function(key,message){var args=[];for(var _i=2;_i<arguments.length;_i++){args[_i-2]=arguments[_i]}if(isNumber(key)){if(key>=messages.length){console.error("Broken localize call found. Index out of bounds. Stacktrace is\n: "+new Error("").stack);return}return format(messages[key],args)}else{if(isString(message)){console.warn("Message "+message+" didn't get externalized correctly.");return format(message,args)}else{console.error("Broken localize call found. Stacktrace is\n: "+new Error("").stack)}}}}function localize(key,message){var args=[];for(var _i=2;_i<arguments.length;_i++){args[_i-2]=arguments[_i]}return format(message,args)}function resolveLanguage(file){var ext=path.extname(file);if(ext){file=file.substr(0,file.length-ext.length)}var resolvedLanguage;if(_options.cacheLanguageResolution&&_resolvedLanguage){resolvedLanguage=_resolvedLanguage}else{if(_isPseudo||!_options.locale){resolvedLanguage=".nls.json"}else{var locale=_options.locale;while(locale){var candidate=".nls."+locale+".json";if(fs.existsSync(file+candidate)){resolvedLanguage=candidate;break}else{var index=locale.lastIndexOf("-");if(index>0){locale=locale.substring(0,index)}else{resolvedLanguage=".nls.json";locale=null}}}}if(_options.cacheLanguageResolution){_resolvedLanguage=resolvedLanguage}}return file+resolvedLanguage}function loadMessageBundle(file){if(!file){return localize}else{var resolvedFile=resolveLanguage(file);try{var json=JSON.parse(fs.readFileSync(resolvedFile,"utf-8"));if(Array.isArray(json)){return createScopedLocalizeFunction(json)}else{if(isDefined(json.messages)&&isDefined(json.keys)){return createScopedLocalizeFunction(json.messages)}else{console.error("String bundle '"+file+"' uses an unsupported format.");return localize}}}catch(e){console.error("Can't load string bundle for "+file);return localize}}}exports.loadMessageBundle=loadMessageBundle;function config(opt){var options;if(isString(opt)){try{options=JSON.parse(opt)}catch(e){console.error("Error parsing nls options: "+opt)}}else{options=opt}if(options){if(isString(options.locale)){_options.locale=options.locale.toLowerCase();_resolvedLanguage=null}if(isBoolean(options.cacheLanguageResolution)){_options.cacheLanguageResolution=options.cacheLanguageResolution}}_isPseudo=_options.locale==="pseudo";return loadMessageBundle}exports.config=config},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:true});var Position;(function(Position){function create(line,character){return{line:line,character:character}}Position.create=create;function is(value){var candidate=value;return Is.defined(candidate)&&Is.number(candidate.line)&&Is.number(candidate.character)}Position.is=is})(Position=exports.Position||(exports.Position={}));var Range;(function(Range){function create(one,two,three,four){if(Is.number(one)&&Is.number(two)&&Is.number(three)&&Is.number(four)){return{start:Position.create(one,two),end:Position.create(three,four)}}else if(Position.is(one)&&Position.is(two)){return{start:one,end:two}}else{throw new Error("Range#create called with invalid arguments["+one+", "+two+", "+three+", "+four+"]")}}Range.create=create;function is(value){var candidate=value;return Is.defined(candidate)&&Position.is(candidate.start)&&Position.is(candidate.end)}Range.is=is})(Range=exports.Range||(exports.Range={}));var Location;(function(Location){function create(uri,range){return{uri:uri,range:range}}Location.create=create;function is(value){var candidate=value;return Is.defined(candidate)&&Range.is(candidate.range)&&(Is.string(candidate.uri)||Is.undefined(candidate.uri))}Location.is=is})(Location=exports.Location||(exports.Location={}));var DiagnosticSeverity;(function(DiagnosticSeverity){DiagnosticSeverity.Error=1;DiagnosticSeverity.Warning=2;DiagnosticSeverity.Information=3;DiagnosticSeverity.Hint=4})(DiagnosticSeverity=exports.DiagnosticSeverity||(exports.DiagnosticSeverity={}));var Diagnostic;(function(Diagnostic){function create(range,message,severity,code,source){var result={range:range,message:message};if(Is.defined(severity)){result.severity=severity}if(Is.defined(code)){result.code=code}if(Is.defined(source)){result.source=source}return result}Diagnostic.create=create;function is(value){var candidate=value;return Is.defined(candidate)&&Range.is(candidate.range)&&Is.string(candidate.message)&&(Is.number(candidate.severity)||Is.undefined(candidate.severity))&&(Is.number(candidate.code)||Is.string(candidate.code)||Is.undefined(candidate.code))&&(Is.string(candidate.source)||Is.undefined(candidate.source))}Diagnostic.is=is})(Diagnostic=exports.Diagnostic||(exports.Diagnostic={}));var Command;(function(Command){function create(title,command){var args=[];for(var _i=2;_i<arguments.length;_i++){args[_i-2]=arguments[_i]}var result={title:title,command:command};if(Is.defined(args)&&args.length>0){result.arguments=args}return result}Command.create=create;function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.title)&&Is.string(candidate.title)}Command.is=is})(Command=exports.Command||(exports.Command={}));var TextEdit;(function(TextEdit){function replace(range,newText){return{range:range,newText:newText}}TextEdit.replace=replace;function insert(position,newText){return{range:{start:position,end:position},newText:newText}}TextEdit.insert=insert;function del(range){return{range:range,newText:""}}TextEdit.del=del})(TextEdit=exports.TextEdit||(exports.TextEdit={}));var TextDocumentEdit;(function(TextDocumentEdit){function create(textDocument,edits){return{textDocument:textDocument,edits:edits}}TextDocumentEdit.create=create;function is(value){var candidate=value;return Is.defined(candidate)&&VersionedTextDocumentIdentifier.is(candidate.textDocument)&&Array.isArray(candidate.edits)}TextDocumentEdit.is=is})(TextDocumentEdit=exports.TextDocumentEdit||(exports.TextDocumentEdit={}));var TextEditChangeImpl=function(){function TextEditChangeImpl(edits){this.edits=edits}TextEditChangeImpl.prototype.insert=function(position,newText){this.edits.push(TextEdit.insert(position,newText))};TextEditChangeImpl.prototype.replace=function(range,newText){this.edits.push(TextEdit.replace(range,newText))};TextEditChangeImpl.prototype.delete=function(range){this.edits.push(TextEdit.del(range))};TextEditChangeImpl.prototype.add=function(edit){this.edits.push(edit)};TextEditChangeImpl.prototype.all=function(){return this.edits};TextEditChangeImpl.prototype.clear=function(){this.edits.splice(0,this.edits.length)};return TextEditChangeImpl}();var WorkspaceChange=function(){function WorkspaceChange(workspaceEdit){var _this=this;this._textEditChanges=Object.create(null);if(workspaceEdit){this._workspaceEdit=workspaceEdit;if(workspaceEdit.documentChanges){workspaceEdit.documentChanges.forEach(function(textDocumentEdit){var textEditChange=new TextEditChangeImpl(textDocumentEdit.edits);_this._textEditChanges[textDocumentEdit.textDocument.uri]=textEditChange})}else if(workspaceEdit.changes){Object.keys(workspaceEdit.changes).forEach(function(key){var textEditChange=new TextEditChangeImpl(workspaceEdit.changes[key]);_this._textEditChanges[key]=textEditChange})}}}Object.defineProperty(WorkspaceChange.prototype,"edit",{get:function(){return this._workspaceEdit},enumerable:true,configurable:true});WorkspaceChange.prototype.getTextEditChange=function(key){if(VersionedTextDocumentIdentifier.is(key)){if(!this._workspaceEdit){this._workspaceEdit={documentChanges:[]}}if(!this._workspaceEdit.documentChanges){throw new Error("Workspace edit is not configured for versioned document changes.")}var textDocument=key;var result=this._textEditChanges[textDocument.uri];if(!result){var edits=[];var textDocumentEdit={textDocument:textDocument,edits:edits};this._workspaceEdit.documentChanges.push(textDocumentEdit);result=new TextEditChangeImpl(edits);this._textEditChanges[textDocument.uri]=result}return result}else{if(!this._workspaceEdit){this._workspaceEdit={changes:Object.create(null)}}if(!this._workspaceEdit.changes){throw new Error("Workspace edit is not configured for normal text edit changes.")}var result=this._textEditChanges[key];if(!result){var edits=[];this._workspaceEdit.changes[key]=edits;result=new TextEditChangeImpl(edits);this._textEditChanges[key]=result}return result}};return WorkspaceChange}();exports.WorkspaceChange=WorkspaceChange;var TextDocumentIdentifier;(function(TextDocumentIdentifier){function create(uri){return{uri:uri}}TextDocumentIdentifier.create=create;function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.uri)}TextDocumentIdentifier.is=is})(TextDocumentIdentifier=exports.TextDocumentIdentifier||(exports.TextDocumentIdentifier={}));var VersionedTextDocumentIdentifier;(function(VersionedTextDocumentIdentifier){function create(uri,version){return{uri:uri,version:version}}VersionedTextDocumentIdentifier.create=create;function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.uri)&&Is.number(candidate.version)}VersionedTextDocumentIdentifier.is=is})(VersionedTextDocumentIdentifier=exports.VersionedTextDocumentIdentifier||(exports.VersionedTextDocumentIdentifier={}));var TextDocumentItem;(function(TextDocumentItem){function create(uri,languageId,version,text){return{uri:uri,languageId:languageId,version:version,text:text}}TextDocumentItem.create=create;function is(value){var candidate=value;return Is.defined(candidate)&&Is.string(candidate.uri)&&Is.string(candidate.languageId)&&Is.number(candidate.version)&&Is.string(candidate.text)}TextDocumentItem.is=is})(TextDocumentItem=exports.TextDocumentItem||(exports.TextDocumentItem={}));var CompletionItemKind;(function(CompletionItemKind){CompletionItemKind.Text=1;CompletionItemKind.Method=2;CompletionItemKind.Function=3;CompletionItemKind.Constructor=4;CompletionItemKind.Field=5;CompletionItemKind.Variabl