Ejemplo n.º 1
0
        public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
        {
            var paramInfo  = m_LinqParamInfoStack.Peek();
            var paramNames = paramInfo.ParamNames;

            paramNames.Remove(paramInfo.JoinParamName);
            paramNames.Add(node.Identifier.Text);

            CodeBuilder.Append("into()");
        }
Ejemplo n.º 2
0
        public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
        {
            if (!PreVisit(node))
            {
                return;
            }

            base.VisitJoinIntoClause(node);

            PostVisit(node);
        }
Ejemplo n.º 3
0
        public void VisitJoinIntoClause(JoinIntoClauseSyntax node)
        {
            if (node == null)
            {
                throw new ArgumentNullException("node");
            }

            node.Validate();

            _writer.WriteKeyword(PrinterKeyword.Into);
            _writer.WriteSpace();
            _writer.WriteIdentifier(node.Identifier);
        }
Ejemplo n.º 4
0
        public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
        {
            var    paramInfo  = m_LinqParamInfoStack.Peek();
            var    paramNames = paramInfo.ParamNames;
            string prestr     = paramInfo.Prestr;

            paramInfo.Prestr = ", ";

            paramNames.Remove(paramInfo.JoinParamName);
            paramNames.Add(node.Identifier.Text);

            CodeBuilder.AppendFormat("{0}{{\"into\"}}", prestr);
        }
Ejemplo n.º 5
0
 public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 6
0
 public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     map.Add(node.Identifier.ValueText, node.Identifier);
     base.VisitJoinIntoClause(node);
 }
Ejemplo n.º 7
0
 public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     Log(node, "Unsupported Syntax !");
 }
Ejemplo n.º 8
0
 public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     base.VisitJoinIntoClause(node);
 }
Ejemplo n.º 9
0
 public TameJoinIntoClauseSyntax(JoinIntoClauseSyntax node)
 {
     Node = node;
     AddChildren();
 }
Ejemplo n.º 10
0
 /// <summary>
 /// 
 /// </summary>
 /// <param name="node"></param>
 public override sealed void VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     this.OnNodeVisited(node);
     if (!this.traverseRootOnly) base.VisitJoinIntoClause(node);
 }
Ejemplo n.º 11
0
 /// <summary>
 /// Get the query range variable declared in a join into clause.
 /// </summary>
 public abstract IRangeVariableSymbol GetDeclaredSymbol(JoinIntoClauseSyntax node, CancellationToken cancellationToken = default(CancellationToken));
Ejemplo n.º 12
0
 public override SyntaxNode VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     //不支持的语法
     return(ReportAndAttachError(base.VisitJoinIntoClause(node), "[Cs2LuaRewriter] Unsupported linq Syntax !"));
 }
Ejemplo n.º 13
0
 public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     this.Found |= node.Identifier.ValueText == this.name;
     base.VisitJoinIntoClause(node);
 }
Ejemplo n.º 14
0
 public override Evaluation VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     return(base.VisitJoinIntoClause(node));
 }
Ejemplo n.º 15
0
 /// <inheritdoc />
 public override Expression VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     throw Unexpected(node, nameof(VisitQueryExpression));
 }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="node"></param>
 public override sealed void VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     this.OnNodeVisited(node, this.type.IsInstanceOfType(node));
     base.VisitJoinIntoClause(node);
 }
Ejemplo n.º 17
0
 public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     FindSpellingMistakesForIdentifier(node.Identifier);
     base.VisitJoinIntoClause(node);
 }
 public override LuaSyntaxNode VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     throw new InvalidOperationException();
 }
Ejemplo n.º 19
0
 public override IRangeVariableSymbol GetDeclaredSymbol(JoinIntoClauseSyntax node, CancellationToken cancellationToken = default(CancellationToken))
 {
     var bound = GetBoundQueryClause(node);
     return bound == null ? null : bound.DefinedSymbol;
 }
 public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     base.VisitJoinIntoClause(node);
     Add(node.Identifier);
 }
Ejemplo n.º 21
0
 public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     map.Add(node.Identifier.ValueText, node.Identifier);
     base.VisitJoinIntoClause(node);
 }
 public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     base.VisitJoinIntoClause(node);
     Add(node.Identifier);
 }
Ejemplo n.º 23
0
        public void VisitJoinIntoClause(JoinIntoClauseSyntax node)
        {
            if (node == null)
                throw new ArgumentNullException("node");

            node.Validate();

            _writer.WriteKeyword(PrinterKeyword.Into);
            _writer.WriteSpace();
            _writer.WriteIdentifier(node.Identifier);
        }
 public IRangeVariableSymbol?ToSymbol(JoinIntoClauseSyntax node)
 => Model.GetDeclaredSymbol(node, CancellationToken);
Ejemplo n.º 25
0
 public override IRangeVariableSymbol GetDeclaredSymbol(JoinIntoClauseSyntax node, CancellationToken cancellationToken = default(CancellationToken))
 {
     CheckSyntaxNode(node);
     var model = this.GetMemberModel(node);
     return (model == null) ? null : model.GetDeclaredSymbol(node, cancellationToken);
 }
Ejemplo n.º 26
0
 public override IRangeVariableSymbol GetDeclaredSymbol(JoinIntoClauseSyntax node, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (Logger.LogBlock(FunctionId.CSharp_SemanticModel_GetDeclaredSymbol, message: this.SyntaxTree.FilePath, cancellationToken: cancellationToken))
     {
         CheckSyntaxNode(node);
         var model = this.GetMemberModel(node);
         return (model == null) ? null : model.GetDeclaredSymbol(node, cancellationToken);
     }
 }
Ejemplo n.º 27
0
 public override SyntaxNode VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     node = (JoinIntoClauseSyntax)base.VisitJoinIntoClause(node);
     Classes.Add(node);
     return(node);
 }
Ejemplo n.º 28
0
 public override void VisitJoinIntoClause(JoinIntoClauseSyntax node)
 {
     this.Found |= node.Identifier.ValueText == this.name;
     base.VisitJoinIntoClause(node);
 }
 //
 // Summary:
 //     Called when the visitor visits a JoinIntoClauseSyntax node.
 public virtual void VisitJoinIntoClause(JoinIntoClauseSyntax node);