public MarkupBlock( BlockType blockType, IParentChunkGenerator chunkGenerator, IEnumerable <SyntaxTreeNode> children) : base(blockType, children, chunkGenerator) { }
public MarkupBlock( BlockKindInternal BlockKind, IParentChunkGenerator chunkGenerator, IReadOnlyList <SyntaxTreeNode> children) : base(BlockKind, children, chunkGenerator) { }
public MarkupBlock( BlockType blockType, IParentChunkGenerator chunkGenerator, IReadOnlyList <SyntaxTreeNode> children) : base(blockType, children, chunkGenerator) { }
public void Equals_False_WhenExpected(IParentChunkGenerator leftObject, object rightObject) { // Arrange & Act var result = leftObject.Equals(rightObject); // Assert Assert.False(result); }
public void Equals_True_WhenExpected(RazorCommentChunkGenerator leftObject, IParentChunkGenerator rightObject) { // Arrange & Act var result = leftObject.Equals(rightObject); // Assert Assert.True(result); }
public void GetHashCode_ReturnsSameValue_WhenEqual( RazorCommentChunkGenerator leftObject, IParentChunkGenerator rightObject) { // Arrange & Act var leftResult = leftObject.GetHashCode(); var rightResult = rightObject.GetHashCode(); // Assert Assert.Equal(leftResult, rightResult); }
protected Block(BlockType?type, IEnumerable <SyntaxTreeNode> contents, IParentChunkGenerator generator) { if (type == null) { throw new InvalidOperationException(RazorResources.Block_Type_Not_Specified); } Type = type.Value; Children = contents; ChunkGenerator = generator; foreach (SyntaxTreeNode node in Children) { node.Parent = this; } }
protected Block(BlockType? type, IEnumerable<SyntaxTreeNode> contents, IParentChunkGenerator generator) { if (type == null) { throw new InvalidOperationException(RazorResources.Block_Type_Not_Specified); } Type = type.Value; Children = contents; ChunkGenerator = generator; foreach (SyntaxTreeNode node in Children) { node.Parent = this; } }
protected Block(BlockKindInternal?type, IReadOnlyList <SyntaxTreeNode> children, IParentChunkGenerator generator) { if (type == null) { throw new InvalidOperationException(Resources.Block_Type_Not_Specified); } Type = type.Value; Children = children; ChunkGenerator = generator; // Perf: Avoid allocating an enumerator. for (var i = 0; i < Children.Count; i++) { Children[i].Parent = this; } }
protected Block(BlockType? type, IReadOnlyList<SyntaxTreeNode> contents, IParentChunkGenerator generator) { if (type == null) { throw new InvalidOperationException(RazorResources.Block_Type_Not_Specified); } Type = type.Value; Children = contents; ChunkGenerator = generator; // Perf: Avoid allocating an enumerator. for (var i = 0; i < Children.Count; i++) { Children[i].Parent = this; } }
public DirectiveBlock(IParentChunkGenerator chunkGenerator, IReadOnlyList <SyntaxTreeNode> children) : base(ThisBlockKind, children, chunkGenerator) { }
public ExpressionBlock(IParentChunkGenerator chunkGenerator, params SyntaxTreeNode[] children) : this(chunkGenerator, (IEnumerable <SyntaxTreeNode>)children) { }
public ExpressionBlock(IParentChunkGenerator chunkGenerator, IEnumerable <SyntaxTreeNode> children) : base(ThisBlockType, children, chunkGenerator) { }
public DirectiveBlock(IParentChunkGenerator chunkGenerator, params SyntaxTreeNode[] children) : this(chunkGenerator, (IEnumerable <SyntaxTreeNode>)children) { }
public DirectiveBlock(IParentChunkGenerator chunkGenerator, IEnumerable <SyntaxTreeNode> children) : base(ThisBlockType, children, chunkGenerator) { }
public MarkupBlock(IParentChunkGenerator chunkGenerator, IEnumerable <SyntaxTreeNode> children) : this(ThisBlockType, chunkGenerator, children) { }
public DirectiveBlock(IParentChunkGenerator chunkGenerator, IEnumerable<SyntaxTreeNode> children) : base(ThisBlockType, children, chunkGenerator) { }
// A Test constructor internal Block(BlockType type, IReadOnlyList <SyntaxTreeNode> contents, IParentChunkGenerator generator) { Type = type; ChunkGenerator = generator; Children = contents; }
// A Test constructor internal Block(BlockType type, IEnumerable <SyntaxTreeNode> contents, IParentChunkGenerator generator) { Type = type; ChunkGenerator = generator; Children = contents; }
public MarkupBlock( BlockType blockType, IParentChunkGenerator chunkGenerator, IEnumerable<SyntaxTreeNode> children) : base(blockType, children, chunkGenerator) { }
public ExpressionBlock(IParentChunkGenerator chunkGenerator, params SyntaxTreeNode[] children) : this(chunkGenerator, (IReadOnlyList <SyntaxTreeNode>)children) { }
public MarkupBlock(IParentChunkGenerator chunkGenerator, IReadOnlyList <SyntaxTreeNode> children) : this(ThisBlockType, chunkGenerator, children) { }
public DirectiveBlock(IParentChunkGenerator chunkGenerator, params SyntaxTreeNode[] children) : this(chunkGenerator, (IEnumerable<SyntaxTreeNode>)children) { }
public virtual void Reset() { Type = null; Children = new List<SyntaxTreeNode>(); ChunkGenerator = ParentChunkGenerator.Null; }
// A Test constructor internal Block(BlockType type, IEnumerable<SyntaxTreeNode> contents, IParentChunkGenerator generator) { Type = type; ChunkGenerator = generator; Children = contents; }
public ExpressionBlock(IParentChunkGenerator chunkGenerator, IEnumerable<SyntaxTreeNode> children) : base(ThisBlockType, children, chunkGenerator) { }
public MarkupBlock(IParentChunkGenerator chunkGenerator, IEnumerable<SyntaxTreeNode> children) : this(ThisBlockType, chunkGenerator, children) { }
public ExpressionBlock(IParentChunkGenerator chunkGenerator, IReadOnlyList <SyntaxTreeNode> children) : base(ThisBlockType, children, chunkGenerator) { }
public ExpressionBlock(IParentChunkGenerator chunkGenerator, params SyntaxTreeNode[] children) : this(chunkGenerator, (IEnumerable<SyntaxTreeNode>)children) { }
public virtual void Reset() { Type = null; Children = new List <SyntaxTreeNode>(); ChunkGenerator = ParentChunkGenerator.Null; }
// A Test constructor internal Block(BlockType type, IReadOnlyList<SyntaxTreeNode> contents, IParentChunkGenerator generator) { Type = type; ChunkGenerator = generator; Children = contents; }