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; }
public virtual GreenNode WithTrailingTrivia(GreenNode trivia) { return(this); }
protected void AddTrailingSkippedSyntax(SyntaxListBuilder list, GreenNode skippedSyntax) { list[list.Count - 1] = AddTrailingSkippedSyntax((LeeSyntaxNode)list[list.Count - 1], skippedSyntax); }
/// <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); }
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);