public string Visit(ILinqRangeVariable rangeVariable, IntermediateNameRequestDetails context) { string name = null; switch (context) { case IntermediateNameRequestDetails.TargetFileName: if (this.HtmlContext) { name = string.Format("#lnq{0:X8}", rangeVariable.GetHashCode()); } break; case IntermediateNameRequestDetails.DisplayName: name = rangeVariable.Name; break; case IntermediateNameRequestDetails.ReferenceName: if (this.HtmlContext) { name = string.Format("lnq{0:X8}", rangeVariable.GetHashCode()); } break; } return(name); }
internal LinqFusionSelectBody() { this.target = new LinqRangeVariable(this, string.Empty); }
/// <summary> /// Creates a new <see cref="LinqFusionSelectBody"/> with the /// <paramref name="selection"/>, <paramref name="target"/>, /// and <paramref name="next"/> provided. /// </summary> /// <param name="selection">The <see cref="IExpression"/> /// which denotes what is selected as a result of the /// language integrated query.</param> /// <param name="target">The <see cref="String"/> representing the name of the /// range variable that the data from the grouped query is stored into.</param> /// <param name="next">The <see cref="ILinqBody"/> which /// continues the language integrated query.</param> public LinqFusionSelectBody(IExpression selection, string target, ILinqBody next) : base(selection) { this.target = new LinqRangeVariable(this, target); this.Next = next; }
public void ReferenceDeclaration(ILinqRangeVariable declaration) { }
public void DefineDeclaration(ILinqRangeVariable declaration) { }
void IIntermediateMemberVisitor.Visit(ILinqRangeVariable intermediateMember) { this.Translate(intermediateMember); }
public void ReferenceDeclaration(ILinqRangeVariable declaration) { ReferenceDeclaration((IIntermediateMember)declaration); }
public TestLinkerResult Visit(ILinqRangeVariable rangeVariable, ICompilationContext context) { throw new NotImplementedException(); }
public void DefineDeclaration(ILinqRangeVariable declaration) { this.DefineDeclaration((IIntermediateMember)declaration); }
public abstract void Translate(ILinqRangeVariable intermediateMember);
public void ReferenceDeclaration(ILinqRangeVariable declaration) { this.Formatter.ReferenceDeclaration(declaration); }
public void DefineDeclaration(ILinqRangeVariable declaration) { this.Formatter.DefineDeclaration(declaration); }
public TransformationKind Visit(ILinqRangeVariable rangeVariable, ITransformationContext context) { throw new NotImplementedException(); }