Example #1
0
            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);
            }
Example #2
0
 internal LinqFusionSelectBody()
 {
     this.target = new LinqRangeVariable(this, string.Empty);
 }
Example #3
0
 /// <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;
 }
Example #4
0
 public void ReferenceDeclaration(ILinqRangeVariable declaration)
 {
 }
Example #5
0
 public void DefineDeclaration(ILinqRangeVariable declaration)
 {
 }
Example #6
0
 void IIntermediateMemberVisitor.Visit(ILinqRangeVariable intermediateMember)
 {
     this.Translate(intermediateMember);
 }
Example #7
0
 public void ReferenceDeclaration(ILinqRangeVariable declaration)
 {
     ReferenceDeclaration((IIntermediateMember)declaration);
 }
Example #8
0
 public TestLinkerResult Visit(ILinqRangeVariable rangeVariable, ICompilationContext context)
 {
     throw new NotImplementedException();
 }
Example #9
0
 public void DefineDeclaration(ILinqRangeVariable declaration)
 {
     this.DefineDeclaration((IIntermediateMember)declaration);
 }
Example #10
0
 public abstract void Translate(ILinqRangeVariable intermediateMember);
Example #11
0
 public void ReferenceDeclaration(ILinqRangeVariable declaration)
 {
     this.Formatter.ReferenceDeclaration(declaration);
 }
Example #12
0
 public void DefineDeclaration(ILinqRangeVariable declaration)
 {
     this.Formatter.DefineDeclaration(declaration);
 }
Example #13
0
 public TransformationKind Visit(ILinqRangeVariable rangeVariable, ITransformationContext context)
 {
     throw new NotImplementedException();
 }