public virtual TResult VisitLabel(ILabelSymbol symbol) { #pragma warning disable CS8717 // A member returning a [MaybeNull] value introduces a null value when 'TResult' is a non-nullable reference type. return(DefaultVisit(symbol)); #pragma warning restore CS8717 // A member returning a [MaybeNull] value introduces a null value when 'TResult' is a non-nullable reference type. }
public ForEachLoopOperation(ImmutableArray <ILocalSymbol> locals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, IOperation loopControlVariable, IOperation collection, ImmutableArray <IOperation> nextVariables, bool isAsynchronous, IOperation body, ForEachLoopOperationInfo info, SemanticModel semanticModel, SyntaxNode syntax, ITypeSymbol type, Optional <object> constantValue, bool isImplicit) : this(loopControlVariable, collection, nextVariables, isAsynchronous, LoopKind.ForEach, body, locals, continueLabel, exitLabel, semanticModel, syntax, type, constantValue, isImplicit) { Info = info; }
private static int CombineHashCodes(ILabelSymbol x, int currentHash) { return(Hash.Combine( x.Name, Hash.Combine(x.Locations.FirstOrDefault(), currentHash) )); }
internal void Parse(ILabelSymbol labelSymbol) { if (labelSymbol == null) { throw new ArgumentNullException(); } this.LabelName = LabelStatement.GetUniqueLabel(labelSymbol); }
public static string GetUniqueLabel(ILabelSymbol label) { var lbl = label.Name; if (!RequiresUniqueName(lbl)) { return(label.Name); } var firstTime = false; lbl += string.Format("_{0}", CCodeWriterBase.GetId(label, out firstTime)); return(lbl); }
public override void VisitLabel(ILabelSymbol symbol) { base.VisitLabel(symbol); }
public IBranchStatement Goto(ILabelSymbol label) => (IBranchStatement)proxy.Invoke(nameof(Goto), label);
public override void VisitLabel(ILabelSymbol symbol) { }
public LazyForLoopOperation(ImmutableArray <ILocalSymbol> locals, ImmutableArray <ILocalSymbol> conditionLocals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, SemanticModel semanticModel, SyntaxNode syntax, ITypeSymbol type, Optional <object> constantValue, bool isImplicit) : this(conditionLocals, LoopKind.For, locals, continueLabel, exitLabel, semanticModel, syntax, type, constantValue, isImplicit) { }
public virtual TResult?VisitLabel(ILabelSymbol symbol) { return(DefaultVisit(symbol)); }
public override object VisitLabel(ILabelSymbol labelSymbol) { WriteType(SymbolKeyType.BodyLevel); BodyLevelSymbolKey.Create(labelSymbol, this); return(null); }
public ILabelStatement Label(ILabelSymbol label) => (ILabelStatement)proxy.Invoke(nameof(Label), label);
public override SymbolKey VisitLabel(ILabelSymbol labelSymbol) { return(new NonDeclarationSymbolKey <ILabelSymbol>(labelSymbol, this)); }
public virtual void VisitLabel(ILabelSymbol symbol) { DefaultVisit(symbol); }
public static ILabelStatement Update(this ILabelStatement self, ILabelSymbol @label, IOperation @body) => self;
public virtual TResult VisitLabel(ILabelSymbol symbol, TArgument argument) { return(DefaultVisit(symbol, argument)); }
public sealed override void VisitLabel(ILabelSymbol symbol) { // Fine. }
public override void VisitLabel(ILabelSymbol symbol) { builder.Add(CreatePart(SymbolDisplayPartKind.LabelName, symbol, symbol.Name)); }
public override void VisitLabel(ILabelSymbol labelSymbol) => throw ExceptionUtilities.Unreachable;
private bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y) { return x.Name == y.Name && HaveSameLocation(x, y); }
public override string VisitLabel(ILabelSymbol symbol) { return(Wrapped.VisitLabel(symbol, Context)); }
private bool LabelsAreEquivalent(ILabelSymbol x, ILabelSymbol y) { return (x.Name == y.Name && HaveSameLocation(x, y)); }
public static IBranchStatement Update(this IBranchStatement self, ILabelSymbol @label, IOperation @caseExpressionOpt, IOperation @labelExpressionOpt) => self;
public static IWhileUntilLoopStatement Update(this IWhileUntilLoopStatement self, ImmutableArray <ISymbol> @locals, IOperation @condition, IOperation @body, ILabelSymbol @breakLabel, ILabelSymbol @continueLabel) => self;
public ForLoopOperation(ImmutableArray <IOperation> before, IOperation condition, ImmutableArray <IOperation> atLoopBottom, ImmutableArray <ILocalSymbol> locals, ImmutableArray <ILocalSymbol> conditionLocals, ILabelSymbol continueLabel, ILabelSymbol exitLabel, IOperation body, SemanticModel semanticModel, SyntaxNode syntax, ITypeSymbol type, Optional <object> constantValue, bool isImplicit) : this(before, conditionLocals, condition, atLoopBottom, LoopKind.For, body, locals, continueLabel, exitLabel, semanticModel, syntax, type, constantValue, isImplicit) { }
public static IForLoopStatement Update(this IForLoopStatement self, ImmutableArray <ISymbol> @outerLocals, IOperation @initializer, ImmutableArray <ISymbol> @innerLocals, IOperation @condition, IOperation @increment, IOperation @body, ILabelSymbol @breakLabel, ILabelSymbol @continueLabel) => self;
public SingleValueCaseClauseOperation(ILabelSymbol label, IOperation value, SemanticModel semanticModel, SyntaxNode syntax, ITypeSymbol type, Optional <object> constantValue, bool isImplicit) : this(value, CaseKind.SingleValue, label, semanticModel, syntax, type, constantValue, isImplicit) { }
public static IForEachLoopStatement Update(this IForEachLoopStatement self, Object @enumeratorInfoOpt, Conversion @elementConversion, IOperation @iterationVariableType, ImmutableArray <ISymbol> @iterationVariables, IOperation @expression, IOperation @deconstructionOpt, IOperation @body, Boolean @checked, ILabelSymbol @breakLabel, ILabelSymbol @continueLabel) => self;
public static ISwitchStatement Update(this ISwitchStatement self, IOperation @loweredPreambleOpt, IOperation @expression, ILabelSymbol @constantTargetOpt, ImmutableArray <ISymbol> @innerLocals, ImmutableArray <ISymbol> @innerLocalFunctions, ImmutableArray <IOperation> @switchSections, ILabelSymbol @breakLabel, IMethodSymbol @stringEquality) => self;
private void AddDescriptionForLabel(ILabelSymbol symbol) { AddToGroup(SymbolDescriptionGroups.MainDescription, Description(FeaturesResources.Label), ToMinimalDisplayParts(symbol)); }
public static ILabelStatement Update(this ILabelStatement self, ILabelSymbol @label) => self;
private void AddDescriptionForLabel(ILabelSymbol symbol) { AddToGroup(SymbolDescriptionGroups.MainDescription, Description(FeaturesResources.label), ToMinimalDisplayParts(symbol)); }