diff options
author | paltherr <paltherr@epfl.ch> | 2004-02-12 15:10:40 +0000 |
---|---|---|
committer | paltherr <paltherr@epfl.ch> | 2004-02-12 15:10:40 +0000 |
commit | 2014d1feeefd1bc6bcfee0cee347c4a77db05253 (patch) | |
tree | deffe18f0bf6527171d655885445abc8bb17023b /sources/scalac/transformer/matching/SequenceMatcher.java | |
parent | b62de8dc4f94efa47bf6714865b8bbf4df700046 (diff) | |
download | scala-2014d1feeefd1bc6bcfee0cee347c4a77db05253.tar.gz scala-2014d1feeefd1bc6bcfee0cee347c4a77db05253.tar.bz2 scala-2014d1feeefd1bc6bcfee0cee347c4a77db05253.zip |
- Changed Tree.Block(Tree[]) to Tree.Block(Tree...
- Changed Tree.Block(Tree[]) to Tree.Block(Tree[],Tree)
Diffstat (limited to 'sources/scalac/transformer/matching/SequenceMatcher.java')
-rw-r--r-- | sources/scalac/transformer/matching/SequenceMatcher.java | 16 |
1 files changed, 4 insertions, 12 deletions
diff --git a/sources/scalac/transformer/matching/SequenceMatcher.java b/sources/scalac/transformer/matching/SequenceMatcher.java index 68d698986c..78334e5c10 100644 --- a/sources/scalac/transformer/matching/SequenceMatcher.java +++ b/sources/scalac/transformer/matching/SequenceMatcher.java @@ -55,8 +55,6 @@ public class SequenceMatcher extends PatternTool { Tree trace = ltis.getTrace(); - Tree theTrace = gen.Ident( cf.pos, ltis.resultSym ); - // (c) determinize + translate R DetWordAutom dRight = new DetWordAutom( right, left, dLeft ); @@ -67,16 +65,10 @@ public class SequenceMatcher extends PatternTool { new RightTracerInScala( dRight, seqVars, _m.owner, cf, pat, elementType ); - Tree stms2[] = rtis.getStms( theTrace, unit, body ); - - // paste statements together - - Tree items[] = new Tree[ 1 + stms2.length ]; - - items[ 0 ] = trace; - System.arraycopy( stms2, 0, items, 1, stms2.length ); - - return gen.mkBlock( body.pos, items ); + // !!! Tree stms2 = rtis.getStms( theTrace, unit, body ); + // !!! gen.mkBlock_( body.pos, trace, stms2 ); + Tree stms2 = rtis.getStms( trace, unit, body ); + return stms2; } private NondetWordAutom[] buildNfas( Tree[] pat ) { |