定制 scssphp/source-span 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

scssphp/source-span

最新稳定版本:v1.1.0

Composer 安装命令:

composer require scssphp/source-span

包简介

Provides a representation for source code locations and spans.

关键字:

README 文档

README

scssphp/source-span is a library for tracking locations in source code. It's designed to provide a standard representation for source code locations and spans so that disparate packages can easily pass them among one another, and to make it easy to generate human-friendly messages associated with a given piece of code.

The most commonly-used interface is the package's namesake, SourceSpan\SourceSpan. It represents a span of characters in some source file, and is often attached to an object that has been parsed to indicate where it was parsed from. It provides access to the text of the span via SourceSpan::getText() and can be used to produce human-friendly messages using SourceSpan::message(). It's most simple implementation is SourceSpan\SimpleSourceSpan which holds directly the span information.

When parsing code from a file, SourceSpan\SourceFile is useful. Not only does it provide an efficient means of computing line and column numbers, SourceFile#span() returns special FileSpans that are able to provide more context for their error messages.

Credits

This library is a PHP port of the Dart source_span package.

统计信息

  • 总下载量: 530.22k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 4
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 3
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固