コード例 #1
0
        private ScalarProperties?_analysis;  // lazy

        public ScalarEvent(string anchor, string tag, ScalarValueType type, string value, ScalarQuotingStyle style)
            : base(anchor)
        {
            _tag   = tag;
            _type  = type;
            _value = value;
            _style = style;
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ScalarValueNode"/> class.
 /// </summary>
 /// <param name="location">The location.</param>
 /// <param name="valueType">Type of the value.</param>
 /// <param name="value">The value.</param>
 public ScalarValueNode(
     SourceLocation location,
     ScalarValueType valueType,
     ReadOnlyMemory <char> value)
     : base(location, value)
 {
     this.ValueType = valueType;
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="QueryScalarInputValue"/> class.
 /// </summary>
 /// <param name="node">The node that represents a location in the document where this scalar should be
 /// present.</param>
 /// <param name="value">The value of the scalar value.</param>
 /// <param name="valueType">The type of scalar value being represented.</param>
 public QueryScalarInputValue(SyntaxNode node, string value, ScalarValueType valueType)
     : base(node)
 {
     this.Value     = value?.AsMemory() ?? ReadOnlyMemory <char> .Empty;
     this.ValueType = valueType;
 }
コード例 #4
0
ファイル: Events.cs プロジェクト: TerabyteX/main
        private ScalarProperties? _analysis; // lazy

        #endregion Fields

        #region Constructors

        public ScalarEvent(string anchor, string tag, ScalarValueType type, string value, ScalarQuotingStyle style)
            : base(anchor)
        {
            _tag = tag;
            _type = type;
            _value = value;
            _style = style;
        }