Skip to content

Commit 014f8a9

Browse files
committed
Exclude not release phrasemes from the Console group
1 parent 4fdb78d commit 014f8a9

File tree

3 files changed

+25
-18
lines changed

3 files changed

+25
-18
lines changed

light-core/src/main/java/org/panda_lang/light/framework/design/architecture/linguistic/Context.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222

2323
public interface Context {
2424

25-
void importComponent(ContextComponent<?> component);
26-
2725
@Nullable LinguisticAct find(String sentence, @Nullable LinguisticCandidate<LinguisticAct> previousCandidate);
2826

27+
void importComponent(ContextComponent<?> component);
28+
2929
Context fork();
3030

3131
@Nullable Type<?> getType(String type);

light-core/src/main/java/org/panda_lang/light/framework/language/resource/phrasemes/ConsolePhraseme.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
package org.panda_lang.light.framework.language.resource.phrasemes;
1818

19-
import org.panda_lang.light.LightConstants;
2019
import org.panda_lang.light.framework.language.architecture.linguistic.phraseme.registry.Id;
2120
import org.panda_lang.light.framework.language.architecture.linguistic.phraseme.registry.PhrasemeRepresentation;
2221

@@ -32,19 +31,4 @@ public void sendMessageToConsole(@Id("message") boolean message) {
3231
System.out.println("boolean::" + message);
3332
}
3433

35-
@PhrasemeRepresentation("light version")
36-
public String lightVersion() {
37-
return LightConstants.VERSION;
38-
}
39-
40-
@PhrasemeRepresentation("string of <object>")
41-
public String stringOf(Object obj) {
42-
return obj.toString();
43-
}
44-
45-
@PhrasemeRepresentation("joined <string> and <string>")
46-
public String join(String a, String b) {
47-
return a + b;
48-
}
49-
5034
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
package org.panda_lang.light.framework.language.resource.phrasemes;
2+
3+
import org.panda_lang.light.LightConstants;
4+
import org.panda_lang.light.framework.language.architecture.linguistic.phraseme.registry.PhrasemeRepresentation;
5+
6+
public class TestPhrasemes {
7+
8+
@PhrasemeRepresentation("light version")
9+
public String lightVersion() {
10+
return LightConstants.VERSION;
11+
}
12+
13+
@PhrasemeRepresentation("string of <object>")
14+
public String stringOf(Object obj) {
15+
return obj.toString();
16+
}
17+
18+
@PhrasemeRepresentation("joined <string> and <string>")
19+
public String join(String a, String b) {
20+
return a + b;
21+
}
22+
23+
}

0 commit comments

Comments
 (0)