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