How to use the yaml-ast-parser.parseYamlInteger function in yaml-ast-parser

To help you get started, we’ve selected a few yaml-ast-parser examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github threadheap / serverless-ide-vscode / packages / language-server / src / language-service / parser / json / document.ts View on Github external
parent,
							name,
							Yaml.parseYamlBoolean(value),
							node.startPosition,
							node.endPosition
						)
					}
					case Yaml.ScalarType.int: {
						const result = new NumberASTNode(
							this,
							parent,
							name,
							node.startPosition,
							node.endPosition
						)
						result.value = Yaml.parseYamlInteger(value)
						result.isInteger = true
						return result
					}
					case Yaml.ScalarType.float: {
						const result = new NumberASTNode(
							this,
							parent,
							name,
							node.startPosition,
							node.endPosition
						)
						result.value = Yaml.parseYamlFloat(value)
						result.isInteger = false
						return result
					}
					case Yaml.ScalarType.string: {
github alibaba / serverless-vscode / src / parser / parser.ts View on Github external
}
        case Yaml.ScalarType.bool: {
          return new BooleanASTNode(
            parent,
            Yaml.parseYamlBoolean(value),
            instance.startPosition,
            instance.endPosition,
          );
        }
        case Yaml.ScalarType.int: {
          const result = new NumberASTNode(
            parent,
            instance.startPosition,
            instance.endPosition,
          );
          result.value = Yaml.parseYamlInteger(value);
          result.isInteger = true;
          return result;
        }
        case Yaml.ScalarType.float: {
          const result = new NumberASTNode(
            parent,
            instance.startPosition,
            instance.endPosition,
          );
          result.value = Yaml.parseYamlFloat(value);
          result.isInteger = false;
          return result;
        }
        case Yaml.ScalarType.string: {
          const result = new StringASTNode(
            parent,