# HG changeset patch # User Laurens Holst # Date 1644609838 -3600 # Fri Feb 11 21:03:58 2022 +0100 # Node ID a422a00ecb6ef75149d42734c1036207212c4e1a # Parent 489b3127f7cecbb1c126795d58d9f88eb808cbd6 SourceBuilder: Express constructor in terms of other constructor. diff --git a/src/main/java/nl/grauw/glass/SourceBuilder.java b/src/main/java/nl/grauw/glass/SourceBuilder.java --- a/src/main/java/nl/grauw/glass/SourceBuilder.java +++ b/src/main/java/nl/grauw/glass/SourceBuilder.java @@ -40,9 +40,7 @@ private static final List sourceFiles = new ArrayList(); public SourceBuilder(List includePaths) { - this.source = new Source(new GlobalScope()); - this.terminators = END_TERMINATORS; - this.includePaths = includePaths; + this(new GlobalScope(), END_TERMINATORS, includePaths); } private SourceBuilder(Scope scope, List terminators, List includePaths) {