12345 |
- /*
- All material copyright ESRI, All Rights Reserved, unless otherwise specified.
- See https://js.arcgis.com/4.25/esri/copyright.txt for details.
- */
- import"../lib/parser.js";import{ParsingErrorCodes as e}from"../lib/types.js";import"../lib/scanner.js";var n;!function(e){e.AlreadyDefined="AlreadyDefined",e.ApiConflict="ApiConflict",e.AssignedNeverUsed="AssignedNeverUsed",e.DefinedNeverAssigned="DefinedNeverAssigned",e.DefinedNeverUsed="DefinedNeverUsed",e.EmptyBlockStatement="EmptyBlockStatement",e.ExecutionError="ExecutionError",e.ProfileVariablesConflict="ProfileVariablesConflict",e.ProfileVariablesAreImmutable="ProfileVariablesAreImmutable",e.InvalidCallIdentifier="InvalidCallIdentifier",e.InvalidConstantIdentifier="InvalidConstantIdentifier",e.InvalidPropertyIdentifier="InvalidPropertyIdentifier",e.UnknownPropertyIdentifier="UnknownPropertyIdentifier",e.NoArgumentExpected="NoArgumentExpected",e.NotDefined="NotDefined",e.NotADictionary="NotADictionary",e.NotEnoughArguments="NotEnoughArguments",e.TooManyArguments="TooManyArguments",e.UnexpectedEmptyFunction="UnexpectedEmptyFunction",e.UnexpectedPropertyIdentifier="UnexpectedPropertyIdentifier"}(n||(n={}));const i={[n.ExecutionError]:"Execution Error: '${stack}'",[n.NoArgumentExpected]:"Expecting no argument",[n.NotEnoughArguments]:"Expecting at least ${min} argument(s)",[n.TooManyArguments]:"Too many arguments, expecting ${max}",[n.UnexpectedEmptyFunction]:"Unexpected empty function '${identifier}'",[n.NotDefined]:"'${identifier}' is not defined",[n.AlreadyDefined]:"'${identifier}' is already defined",[n.ApiConflict]:"'${identifier}' is already defined as an Arcade constant or function",[n.ProfileVariablesConflict]:"'${identifier}' is already defined as a profile variable",[n.ProfileVariablesAreImmutable]:"Profile variables cannot be modified",[n.EmptyBlockStatement]:"Empty block statement",[n.AssignedNeverUsed]:"'${identifier}' is assigned but never used",[n.DefinedNeverUsed]:"'${identifier}' is defined but never used",[n.DefinedNeverAssigned]:"'${identifier}' is defined but never assigned",[n.InvalidConstantIdentifier]:"Invalid constant identifier, expecting ${list}",[n.InvalidPropertyIdentifier]:"Invalid property identifier, expecting ${list}",[n.UnknownPropertyIdentifier]:"Unknown property identifier '${identifier}'",[n.NotADictionary]:"'${identifier}' doesn't have properties",[n.UnexpectedPropertyIdentifier]:"Unexpected property identifier",[e.ForInOfLoopInitializer]:"Variable in for-in loop cannot be initialized",[e.IdentiferExpected]:"Identifier expected",[e.InvalidEscapedReservedWord]:"Keyword cannot contain escaped characters",[e.InvalidExpression]:"Invalid expression",[e.InvalidFunctionIdentifier]:"Invalid function identifier",[e.InvalidHexEscapeSequence]:"Invalid hexadecimal escape sequence",[e.InvalidLeftHandSideInAssignment]:"Invalid left-hand side in assignment",[e.InvalidLeftHandSideInForIn]:"Invalid left-hand side in for-in",[e.InvalidTemplateHead]:"Invalid template structure",[e.InvalidVariableAssignment]:"Invalid variable assignment",[e.KeyMustBeString]:"Object keys must be a string",[e.NoFunctionInsideFunction]:"Functions cannot be declared inside another function",[e.PunctuatorExpected]:"'${value}' expected",[e.TemplateOctalLiteral]:"Octal literals are not allowed in template strings.",[e.UnexpectedEndOfScript]:"Unexpected end of script",[e.UnexpectedIdentifier]:"Unexpected identifier",[e.UnexpectedNumber]:"Unexpected number",[e.UnexpectedString]:"Unexpected string",[e.UnexpectedTemplate]:"Unexpected quasi '${value}'",[e.UnexpectedToken]:"Unexpected token"};export{n as DiagnosticCodes,i as DiagnosticMessages};
|