tgqe 0.0.2

The Great Qin Empire —— A centralized system for integrating and summarizing common compiler front-end library errors and span error output libraries, with optional Ariadne integration.
/**

 *  - Copyright (c) 星灿长风v(Starwindv) 2026/08/03
 *  - License: BSD-3
 *  - Author: 星灿长风v(StarWindv)
 *  - Location: tgqe/src/modules/impls/context.rs
 */
use crate::base_types::{
    TgqeCtx, TgqeErrorInfo, TgqePosition,
};

impl TgqeCtx {
    pub fn new(
        position: TgqePosition,
        err_info: TgqeErrorInfo,
        hints: &str,
        labels: &str,
        publisher: &str,
        ns_timestamp: i64,
    ) -> Self {
        Self {
            position,
            err_info,
            hints: hints.to_string(),
            labels: labels.to_string(),
            publisher: publisher.to_string(),
            ns_timestamp,
        }
    }
}