Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Block" /> class.
 /// </summary>
 /// <param name="blocks">The ownerCollection.</param>
 /// <param name="initialBlockType">Initial type of the block.</param>
 /// <param name="text">The text.</param>
 public Block(
     ProjectBlockCollection blocks,
     BlockType initialBlockType,
     string text = "")
 {
     BlockKey   = BlockKey.GetNext();
     Blocks     = blocks;
     blockType  = initialBlockType;
     this.text  = text;
     Properties = new PropertiesDictionary();
     TextSpans  = new TextSpanCollection();
     accessLock = new ReaderWriterLockSlim(LockRecursionPolicy.NoRecursion);
     previouslyAnalyzedPlugins = new HashSet <IBlockAnalyzerProjectPlugin>();
 }