Ejemplo n.º 1
0
 protected void AdjustFlagsAndWidth(GreenNode node)
 {
     Debug.Assert(node != null, "PERF: caller must ensure that node!=null, we do not want to re-check that here.");
     this.flags |= (node.flags & NodeFlags.InheritMask);
     _fullWidth += node._fullWidth;
 }
Ejemplo n.º 2
0
 public virtual GreenNode WithTrailingTrivia(GreenNode trivia)
 {
     return(this);
 }
Ejemplo n.º 3
0
 protected void AddTrailingSkippedSyntax(SyntaxListBuilder list, GreenNode skippedSyntax)
 {
     list[list.Count - 1] = AddTrailingSkippedSyntax((LeeSyntaxNode)list[list.Count - 1], skippedSyntax);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Converts skippedSyntax node into tokens and adds these as trivia on the target token.
 /// Also adds the first error (in depth-first preorder) found in the skipped syntax tree to the target token.
 /// </summary>
 public SyntaxToken AddSkippedSyntax(SyntaxToken target, GreenNode skippedSyntax, bool trailing)
 {
     return(target);
 }
Ejemplo n.º 5
0
 protected static SyntaxDiagnosticInfo MakeError(GreenNode node, ErrorCode code, params object[] args)
 {
     return(new SyntaxDiagnosticInfo(node.GetLeadingTriviaWidth(), node.Width, code, args));
 }
Ejemplo n.º 6
0
 public abstract void ReportInvalidNamedArgument(DiagnosticBag diagnostics, GreenNode attributeSyntax, int namedArgumentIndex, ITypeSymbol attributeClass, string parameterName);
Ejemplo n.º 7
0
 public abstract void ReportInvalidAttributeArgument(DiagnosticBag diagnostics, GreenNode attributeSyntax, int parameterIndex, AttributeData attribute);
Ejemplo n.º 8
0
 public abstract void ReportAttributeParameterRequired(DiagnosticBag diagnostics, GreenNode attributeSyntax, string parameterName1, string parameterName2);
Ejemplo n.º 9
0
 public abstract void ReportParameterNotValidForType(DiagnosticBag diagnostics, GreenNode attributeSyntax, int namedArgumentIndex);