mxmlextrema_as3parser/tree/
configuration_directive.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::ns::*;
use serde::{Serialize, Deserialize};

/// Represents a `CONFIG::x ...` directive
/// which is followed by either a block or a definition.
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct ConfigurationDirective {
    pub location: Location,
    /// The namespace, most commonly the `CONFIG` identifier.
    pub namespace: (String, Location),
    /// The constant name without including the qualifier.
    pub constant_name: (String, Location),
    pub directive: Rc<Directive>,
}