Beispiel #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;
 }
Beispiel #2
0
 public virtual GreenNode WithTrailingTrivia(GreenNode trivia)
 {
     return(this);
 }
Beispiel #3
0
 protected void AddTrailingSkippedSyntax(SyntaxListBuilder list, GreenNode skippedSyntax)
 {
     list[list.Count - 1] = AddTrailingSkippedSyntax((LeeSyntaxNode)list[list.Count - 1], skippedSyntax);
 }
Beispiel #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);
 }
Beispiel #5
0
 protected static SyntaxDiagnosticInfo MakeError(GreenNode node, ErrorCode code, params object[] args)
 {
     return(new SyntaxDiagnosticInfo(node.GetLeadingTriviaWidth(), node.Width, code, args));
 }
 public abstract void ReportInvalidNamedArgument(DiagnosticBag diagnostics, GreenNode attributeSyntax, int namedArgumentIndex, ITypeSymbol attributeClass, string parameterName);
 public abstract void ReportInvalidAttributeArgument(DiagnosticBag diagnostics, GreenNode attributeSyntax, int parameterIndex, AttributeData attribute);
 public abstract void ReportAttributeParameterRequired(DiagnosticBag diagnostics, GreenNode attributeSyntax, string parameterName1, string parameterName2);
 public abstract void ReportParameterNotValidForType(DiagnosticBag diagnostics, GreenNode attributeSyntax, int namedArgumentIndex);