Skip to content
Snippets Groups Projects
Commit bf675260 authored by BAUQUIN Niels's avatar BAUQUIN Niels
Browse files

dfg

parent 30863632
Branches
No related tags found
No related merge requests found
......@@ -23,6 +23,11 @@ public class Ts
public TsItemVar addVar(String identif, Type type)
{
for (String id : variables.keySet()) {
if (id == identif && variables.get(id).isParam) {
return null;
}
}
TsItemVar item = new TsItemVarSimple(identif, type);
item.portee = this;
item.adresse = this.adrVarCourante;
......@@ -34,6 +39,11 @@ public class Ts
public TsItemVar addParam(String identif, Type type)
{
for (String id : variables.keySet()) {
if (id == identif && variables.get(id).isParam) {
return null;
}
}
TsItemVar item = new TsItemVarSimple(identif, type);
item.portee = this;
item.adresse = this.adrArgCourante;
......@@ -45,6 +55,7 @@ public class Ts
public TsItemVar addTab(String identif, Type type, int taille)
{
//Verifier qu'on est en global
TsItemVar item = new TsItemVarTab(identif, type, taille);
item.portee = this;
item.adresse = this.adrVarCourante;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment